ConventionTypeConfiguration.ToTable Method
Configures the table name that this entity type is mapped to.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | ToTable(String) | Configures the table name that this entity type is mapped to. |
![]() | ToTable(String, String) | Configures the table name that this entity type is mapped to. |
ConventionTypeConfiguration.ToTable Method (String)
Configures the table name that this entity type is mapped to.
Parameters
- tableName
-
Type:
System.String
The name of the table.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfigurationThe same ConventionTypeConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.
ConventionTypeConfiguration.ToTable Method (String, String)
Configures the table name that this entity type is mapped to.
Parameters
- tableName
-
Type:
System.String
The name of the table.
- schemaName
-
Type:
System.String
The database schema of the table.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfigurationThe same ConventionTypeConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.