ConventionTypeConfiguration<T>.ToTable Method

 

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

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
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.


ConventionTypeConfiguration<T>.ToTable Method (String)

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

public ConventionTypeConfiguration<T> ToTable(
	string tableName
)

Parameters

tableName
Type: System.String

The name of the table.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T>

The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.

Calling this will have no effect once it has been configured.


ConventionTypeConfiguration<T>.ToTable Method (String, String)

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

public ConventionTypeConfiguration<T> 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.Configuration.ConventionTypeConfiguration<T>

The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.

Calling this will have no effect once it has been configured.