EntityTypeConfiguration<TEntityType>.ToTable Method

Definition

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.EntityTypeConfiguration<TEntityType> ToTable (string tableName);
member this.ToTable : string -> System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<'EntityType (requires 'EntityType : null)>
Public Function ToTable (tableName As String) As EntityTypeConfiguration(Of TEntityType)

Parameters

tableName
String

The name of the table.

Returns

The same EntityTypeConfiguration instance so that multiple calls can be chained.

ToTable(String, String)

Configures the table name that this entity type is mapped to.

public System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType> ToTable (string tableName, string schemaName);
member this.ToTable : string * string -> System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<'EntityType (requires 'EntityType : null)>
Public Function ToTable (tableName As String, schemaName As String) As EntityTypeConfiguration(Of TEntityType)

Parameters

tableName
String

The name of the table.

schemaName
String

The database schema of the table.

Returns

The same EntityTypeConfiguration instance so that multiple calls can be chained.

Applies to