ForeignKeyAssociationMappingConfiguration.ToTable 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
ToTable(String) |
Configures the table name that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method. |
ToTable(String, String) |
Configures the table name and schema that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method. |
ToTable(String)
Configures the table name that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method.
public System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration ToTable (string tableName);
member this.ToTable : string -> System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration
Public Function ToTable (tableName As String) As ForeignKeyAssociationMappingConfiguration
Parameters
- tableName
- String
Name of the table.
Returns
The same ForeignKeyAssociationMappingConfiguration instance so that multiple calls can be chained.
Applies to
ToTable(String, String)
Configures the table name and schema that the foreign key column(s) reside in. The table that is specified must already be mapped for the entity type. If you want the foreign key(s) to reside in their own table then use the Map method on System.Data.Entity.ModelConfiguration.EntityTypeConfiguration to perform entity splitting to create the table with just the primary key property. Foreign keys can then be added to the table via this method.
public System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration ToTable (string tableName, string schemaName);
member this.ToTable : string * string -> System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration
Public Function ToTable (tableName As String, schemaName As String) As ForeignKeyAssociationMappingConfiguration
Parameters
- tableName
- String
Name of the table.
- schemaName
- String
Schema of the table.
Returns
The same ForeignKeyAssociationMappingConfiguration instance so that multiple calls can be chained.
Applies to
Entity Framework