RelationalReferenceOwnershipBuilderExtensions.ToTable Method

Definition

Overloads

ToTable(ReferenceOwnershipBuilder, String)

Configures the view or table that the entity maps to when targeting a relational database.

ToTable(ReferenceOwnershipBuilder, String, String)

Configures the view or table that the entity maps to when targeting a relational database.

ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String)

Configures the view or table that the entity maps to when targeting a relational database.

ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String)

Configures the view or table that the entity maps to when targeting a relational database.

ToTable(ReferenceOwnershipBuilder, String)

Configures the view or table that the entity maps to when targeting a relational database.

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

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder

The builder for the entity type being configured.

name
String

The name of the view or table.

Returns

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

Applies to

ToTable(ReferenceOwnershipBuilder, String, String)

Configures the view or table that the entity maps to when targeting a relational database.

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

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder

The builder for the entity type being configured.

name
String

The name of the view or table.

schema
String

The schema of the view or table.

Returns

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

Applies to

ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String)

Configures the view or table that the entity maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name) where TEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity), name As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Type Parameters

TEntity

The entity type being configured.

TRelatedEntity

The entity type that this relationship targets.

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder<TEntity,TRelatedEntity>

The builder for the entity type being configured.

name
String

The name of the view or table.

Returns

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

Applies to

ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String)

Configures the view or table that the entity maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name, string schema) where TEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity), name As String, schema As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Type Parameters

TEntity

The entity type being configured.

TRelatedEntity

The entity type that this relationship targets.

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder<TEntity,TRelatedEntity>

The builder for the entity type being configured.

name
String

The name of the view or table.

schema
String

The schema of the view or table.

Returns

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

Applies to