EntityMappingConfiguration<TEntityType>.ToTable Method
Configures the table methods to be mapped to.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | ToTable(String) | Configures the table name to be mapped to. |
![]() | ToTable(String, String) | Configures the table name and schema to be mapped to. |
EntityMappingConfiguration<TEntityType>.ToTable Method (String)
Configures the table name to be mapped to.
Parameters
- tableName
-
Type:
System.String
Name of the table.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType>The same configuration instance so that multiple calls can be chained.
EntityMappingConfiguration<TEntityType>.ToTable Method (String, String)
Configures the table name and schema to be mapped to.
public EntityMappingConfiguration<TEntityType> ToTable( string tableName, string schemaName )
Parameters
- tableName
-
Type:
System.String
Name of the table.
- schemaName
-
Type:
System.String
Schema of the table.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType>The same configuration instance so that multiple calls can be chained.