RelationalEntityTypeBuilderExtensions.SplitToTable 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
SplitToTable(EntityTypeBuilder, String, Action<SplitTableBuilder>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable(OwnedNavigationBuilder, String, Action<OwnedNavigationSplitTableBuilder>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable(EntityTypeBuilder, String, String, Action<SplitTableBuilder>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable(OwnedNavigationBuilder, String, String, Action<OwnedNavigationSplitTableBuilder>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<SplitTableBuilder<TEntity>>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<SplitTableBuilder<TEntity>>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>>) |
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped. |
SplitToTable(EntityTypeBuilder, String, Action<SplitTableBuilder>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder SplitToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder> buildAction);
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function SplitToTable (entityTypeBuilder As EntityTypeBuilder, name As String, buildAction As Action(Of SplitTableBuilder)) As EntityTypeBuilder
Parameters
- entityTypeBuilder
- EntityTypeBuilder
The builder for the entity type being configured.
- name
- String
The name of the table.
- buildAction
- Action<SplitTableBuilder>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable(OwnedNavigationBuilder, String, Action<OwnedNavigationSplitTableBuilder>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder SplitToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder> buildAction);
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function SplitToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of OwnedNavigationSplitTableBuilder)) As OwnedNavigationBuilder
Parameters
- ownedNavigationBuilder
- OwnedNavigationBuilder
The builder for the entity type being configured.
- name
- String
The name of the table.
- buildAction
- Action<OwnedNavigationSplitTableBuilder>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable(EntityTypeBuilder, String, String, Action<SplitTableBuilder>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder SplitToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder> buildAction);
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function SplitToTable (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String, buildAction As Action(Of SplitTableBuilder)) As EntityTypeBuilder
Parameters
- entityTypeBuilder
- EntityTypeBuilder
The builder for the entity type being configured.
- name
- String
The name of the table.
- schema
- String
The schema of the table.
- buildAction
- Action<SplitTableBuilder>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable(OwnedNavigationBuilder, String, String, Action<OwnedNavigationSplitTableBuilder>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder SplitToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder> buildAction);
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function SplitToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of OwnedNavigationSplitTableBuilder)) As OwnedNavigationBuilder
Parameters
- ownedNavigationBuilder
- OwnedNavigationBuilder
The builder for the entity type being configured.
- name
- String
The name of the table.
- schema
- String
The schema of the table.
- buildAction
- Action<OwnedNavigationSplitTableBuilder>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<SplitTableBuilder<TEntity>>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> SplitToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder<TEntity>> buildAction) where TEntity : class;
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function SplitToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of SplitTableBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)
Type Parameters
- TEntity
The entity type being configured.
Parameters
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
The builder for the entity type being configured.
- name
- String
The name of the table.
- buildAction
- Action<SplitTableBuilder<TEntity>>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<SplitTableBuilder<TEntity>>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> SplitToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder<TEntity>> buildAction) where TEntity : class;
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitTableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function SplitToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of SplitTableBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)
Type Parameters
- TEntity
The entity type being configured.
Parameters
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
The builder for the entity type being configured.
- name
- String
The name of the table.
- schema
- String
The schema of the table.
- buildAction
- Action<SplitTableBuilder<TEntity>>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> SplitToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function SplitToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationSplitTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Type Parameters
- TOwnerEntity
The entity type owning the relationship.
- TDependentEntity
The dependent entity type of the relationship.
Parameters
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
The builder for the entity type being configured.
- name
- String
The name of the table.
- buildAction
- Action<OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
SplitToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>>)
Configures some of the properties on this entity type to be mapped to a different table. The primary key properties are mapped to all tables, other properties must be explicitly mapped.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> SplitToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member SplitToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function SplitToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationSplitTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Type Parameters
- TOwnerEntity
The entity type owning the relationship.
- TDependentEntity
The dependent entity type of the relationship.
Parameters
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
The builder for the entity type being configured.
- name
- String
The name of the table.
- schema
- String
The schema of the table.
- buildAction
- Action<OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>>
An action that performs configuration of the table.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
Entity Framework