ConventionTypeConfiguration<T>.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 this entity type is mapped to. |
ToTable(String, String) |
Configures the table name that this entity type is mapped to. |
ToTable(String)
Configures the table name that this entity type is mapped to.
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T> ToTable (string tableName);
member this.ToTable : string -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function ToTable (tableName As String) As ConventionTypeConfiguration(Of T)
Parameters
- tableName
- String
The name of the table.
Returns
The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
Remarks
Calling this will have no effect once it has been configured.
Applies to
ToTable(String, String)
Configures the table name that this entity type is mapped to.
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T> ToTable (string tableName, string schemaName);
member this.ToTable : string * string -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function ToTable (tableName As String, schemaName As String) As ConventionTypeConfiguration(Of T)
Parameters
- tableName
- String
The name of the table.
- schemaName
- String
The database schema of the table.
Returns
The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
Remarks
Calling this will have no effect once it has been configured.
Applies to
Entity Framework