SqlServerEntityTypeBuilderExtensions.ForSqlServerToTable Method

Definition

Overloads

ForSqlServerToTable(EntityTypeBuilder, String, String)

Configures the table that the entity maps to when targeting SQL Server.

ForSqlServerToTable(EntityTypeBuilder, String)

Configures the table that the entity maps to when targeting SQL Server.

ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the table that the entity maps to when targeting SQL Server.

ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the table that the entity maps to when targeting SQL Server.

ForSqlServerToTable(EntityTypeBuilder, String, String)

Configures the table that the entity maps to when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ForSqlServerToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string schema);
static member ForSqlServerToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ForSqlServerToTable (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the table.

schema
String

The schema of the table.

Returns

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

Applies to

ForSqlServerToTable(EntityTypeBuilder, String)

Configures the table that the entity maps to when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ForSqlServerToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name);
static member ForSqlServerToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ForSqlServerToTable (entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the table.

Returns

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

Applies to

ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the table that the entity maps to when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name) where TEntity : class;
static member ForSqlServerToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ForSqlServerToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the table.

Returns

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

Applies to

ForSqlServerToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the table that the entity maps to when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema) where TEntity : class;
static member ForSqlServerToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ForSqlServerToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the table.

schema
String

The schema of the table.

Returns

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

Applies to