EntityTypeConfiguration<TEntityType>.ToTable Method

 

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

Namespace:   System.Data.Entity.ModelConfiguration
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodToTable(String)

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

System_CAPS_pubmethodToTable(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.

public EntityTypeConfiguration<TEntityType> ToTable(
	string tableName
)

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.