EntityMappingConfiguration<TEntityType>.ToTable Method

 

Configures the table methods to be mapped to.

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

NameDescription
System_CAPS_pubmethodToTable(String)

Configures the table name to be mapped to.

System_CAPS_pubmethodToTable(String, String)

Configures the table name and schema to be mapped to.


EntityMappingConfiguration<TEntityType>.ToTable Method (String)

Configures the table name to be mapped to.

public EntityMappingConfiguration<TEntityType> ToTable(
	string tableName
)

Parameters

tableName
Type: System.String

Name of the table.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType>

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


EntityMappingConfiguration<TEntityType>.ToTable Method (String, String)

Configures the table name and schema to be mapped to.

public EntityMappingConfiguration<TEntityType> ToTable(
	string tableName,
	string schemaName
)

Parameters

tableName
Type: System.String

Name of the table.

schemaName
Type: System.String

Schema of the table.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType>

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