Share via


EntityMappingConfiguration<TEntityType>.ToTable Method

Definition

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