RelationalEntityTypeBuilderExtensions.UseTpcMappingStrategy Method

Definition

Overloads

UseTpcMappingStrategy(EntityTypeBuilder)

Configures TPC as the mapping strategy for the derived types. Each type will be mapped to a different database object. All properties will be mapped to columns on the corresponding object.

UseTpcMappingStrategy<TEntity>(EntityTypeBuilder<TEntity>)

Configures TPC as the mapping strategy for the derived types. Each type will be mapped to a different database object. All properties will be mapped to columns on the corresponding object.

UseTpcMappingStrategy(EntityTypeBuilder)

Configures TPC as the mapping strategy for the derived types. Each type will be mapped to a different database object. All properties will be mapped to columns on the corresponding object.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UseTpcMappingStrategy (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder);
static member UseTpcMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function UseTpcMappingStrategy (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

UseTpcMappingStrategy<TEntity>(EntityTypeBuilder<TEntity>)

Configures TPC as the mapping strategy for the derived types. Each type will be mapped to a different database object. All properties will be mapped to columns on the corresponding object.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> UseTpcMappingStrategy<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder) where TEntity : class;
static member UseTpcMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function UseTpcMappingStrategy(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