EntityMappingConfiguration<TEntityType>.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 to be mapped to. |
ToTable(String, String) |
Configures the table name and schema to be mapped to. |
ToTable(String)
Configures the table name to be mapped to.
public System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType> ToTable (string tableName);
member this.ToTable : string -> System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<'EntityType (requires 'EntityType : null)>
Public Function ToTable (tableName As String) As EntityMappingConfiguration(Of TEntityType)
Parameters
- tableName
- String
Name of the table.
Returns
The same configuration instance so that multiple calls can be chained.
Applies to
ToTable(String, String)
Configures the table name and schema to be mapped to.
public System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType> ToTable (string tableName, string schemaName);
member this.ToTable : string * string -> System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<'EntityType (requires 'EntityType : null)>
Public Function ToTable (tableName As String, schemaName As String) As EntityMappingConfiguration(Of TEntityType)
Parameters
- tableName
- String
Name of the table.
- schemaName
- String
Schema of the table.
Returns
The same configuration instance so that multiple calls can be chained.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for