RelationalCollectionOwnershipBuilderExtensions.ToTable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToTable(CollectionOwnershipBuilder, String) |
Configures the view or table that the entity maps to when targeting a relational database. |
ToTable(CollectionOwnershipBuilder, String, String) |
Configures the view or table that the entity maps to when targeting a relational database. |
ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String) |
Configures the view or table that the entity maps to when targeting a relational database. |
ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String) |
Configures the view or table that the entity maps to when targeting a relational database. |
ToTable(CollectionOwnershipBuilder, String)
Configures the view or table that the entity maps to when targeting a relational database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, string name);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
<Extension()>
Public Function ToTable (collectionOwnershipBuilder As CollectionOwnershipBuilder, name As String) As CollectionOwnershipBuilder
Parameters
- collectionOwnershipBuilder
- CollectionOwnershipBuilder
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(CollectionOwnershipBuilder, String, String)
Configures the view or table that the entity maps to when targeting a relational database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, string name, string schema);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
<Extension()>
Public Function ToTable (collectionOwnershipBuilder As CollectionOwnershipBuilder, name As String, schema As String) As CollectionOwnershipBuilder
Parameters
- collectionOwnershipBuilder
- CollectionOwnershipBuilder
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,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String)
Configures the view or table that the entity maps to when targeting a relational database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> ToTable<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> collectionOwnershipBuilder, string name) where TEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TDependentEntity As Class) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TDependentEntity), name As String) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)
Type Parameters
- TEntity
The entity type being configured.
- TDependentEntity
The entity type that this relationship targets.
Parameters
- collectionOwnershipBuilder
- CollectionOwnershipBuilder<TEntity,TDependentEntity>
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,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String)
Configures the view or table that the entity maps to when targeting a relational database.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> ToTable<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> collectionOwnershipBuilder, string name, string schema) where TEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TDependentEntity As Class) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TDependentEntity), name As String, schema As String) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)
Type Parameters
- TEntity
The entity type being configured.
- TDependentEntity
The entity type that this relationship targets.
Parameters
- collectionOwnershipBuilder
- CollectionOwnershipBuilder<TEntity,TDependentEntity>
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
Entity Framework