RelationalEntityTypeBuilderExtensions.UseTptMappingStrategy Method
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.
Overloads
UseTptMappingStrategy(EntityTypeBuilder) |
Configures TPT as the mapping strategy for the derived types. Each type will be mapped to a different database object. Only the declared properties will be mapped to columns on the corresponding object. |
UseTptMappingStrategy<TEntity>(EntityTypeBuilder<TEntity>) |
Configures TPT as the mapping strategy for the derived types. Each type will be mapped to a different database object. Only the declared properties will be mapped to columns on the corresponding object. |
UseTptMappingStrategy(EntityTypeBuilder)
Configures TPT as the mapping strategy for the derived types. Each type will be mapped to a different database object. Only the declared properties will be mapped to columns on the corresponding object.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UseTptMappingStrategy (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder);
static member UseTptMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function UseTptMappingStrategy (entityTypeBuilder As EntityTypeBuilder) As EntityTypeBuilder
Parameters
- entityTypeBuilder
- EntityTypeBuilder
The builder for the entity type being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Entity type hierarchy mapping for more information and examples.
Applies to
UseTptMappingStrategy<TEntity>(EntityTypeBuilder<TEntity>)
Configures TPT as the mapping strategy for the derived types. Each type will be mapped to a different database object. Only the declared properties will be mapped to columns on the corresponding object.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> UseTptMappingStrategy<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder) where TEntity : class;
static member UseTptMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function UseTptMappingStrategy(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity)) As EntityTypeBuilder(Of TEntity)
Type Parameters
- TEntity
Parameters
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
The builder for the entity type being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Entity type hierarchy mapping for more information and examples.
Applies to
Entity Framework