ViewBuilder<TEntity> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instances of this class are returned from methods when using the ModelBuilder API and it is not designed to be directly constructed in your application code.
public class ViewBuilder<TEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>> where TEntity : class
type ViewBuilder<'Entity (requires 'Entity : null)> = class
inherit ViewBuilder
interface IInfrastructure<EntityTypeBuilder<'Entity>>
Public Class ViewBuilder(Of TEntity)
Inherits ViewBuilder
Implements IInfrastructure(Of EntityTypeBuilder(Of TEntity))
Type Parameters
- TEntity
The entity type being configured.
- Inheritance
- Implements
-
IInfrastructure<EntityTypeBuilder<TEntity>>
Constructors
ViewBuilder<TEntity>(StoreObjectIdentifier, EntityTypeBuilder<TEntity>) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Properties
Name |
The specified view name. (Inherited from ViewBuilder) |
Schema |
The specified view schema. (Inherited from ViewBuilder) |
StoreObject |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. (Inherited from ViewBuilder) |
Methods
Property(String) |
Maps the property to a column on the current view and returns an object that can be used to provide view-specific configuration if the property is mapped to more than one view. (Inherited from ViewBuilder) |
Property<TProperty>(Expression<Func<TEntity,TProperty>>) |
Maps the property to a column on the current view and returns an object that can be used to provide view-specific configuration if the property is mapped to more than one view. |
Property<TProperty>(String) |
Maps the property to a column on the current view and returns an object that can be used to provide view-specific configuration if the property is mapped to more than one view. (Inherited from ViewBuilder) |
Explicit Interface Implementations
IInfrastructure<EntityTypeBuilder<TEntity>>.Instance | |
IInfrastructure<EntityTypeBuilder>.Instance | (Inherited from ViewBuilder) |
Extension Methods
GetInfrastructure<T>(IInfrastructure<T>) |
Gets the value from a property that is being hidden using IInfrastructure<T>. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
Applies to
Entity Framework