ConventionTypeConfiguration.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.ToTable Method (String)

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

public ConventionTypeConfiguration ToTable(
	string tableName
)

Parameters

tableName
Type: System.String

The name of the table.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration

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

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


ConventionTypeConfiguration.ToTable Method (String, String)

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

public ConventionTypeConfiguration 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

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

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