EntityTypeConfiguration<TEntityType>.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. |
EntityTypeConfiguration<TEntityType>.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.EntityTypeConfiguration<TEntityType>The same EntityTypeConfiguration instance so that multiple calls can be chained.
EntityTypeConfiguration<TEntityType>.ToTable Method (String, String)
Configures the table name that this entity type is mapped to.
public EntityTypeConfiguration<TEntityType> ToTable( string tableName, string schemaName )
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.EntityTypeConfiguration<TEntityType>The same EntityTypeConfiguration instance so that multiple calls can be chained.