RelationalCollectionOwnershipBuilderExtensions.ToTable 方法

定义

重载

ToTable(CollectionOwnershipBuilder, String)

配置实体在面向关系数据库时映射到的视图或表。

ToTable(CollectionOwnershipBuilder, String, String)

配置实体在面向关系数据库时映射到的视图或表。

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String)

配置实体在面向关系数据库时映射到的视图或表。

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String)

配置实体在面向关系数据库时映射到的视图或表。

ToTable(CollectionOwnershipBuilder, String)

配置实体在面向关系数据库时映射到的视图或表。

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

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder

要配置的实体类型的生成器。

name
String

视图或表的名称。

返回

同一生成器实例,以便可以链接多个调用。

适用于

ToTable(CollectionOwnershipBuilder, String, String)

配置实体在面向关系数据库时映射到的视图或表。

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

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder

要配置的实体类型的生成器。

name
String

视图或表的名称。

schema
String

视图或表的架构。

返回

同一生成器实例,以便可以链接多个调用。

适用于

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String)

配置实体在面向关系数据库时映射到的视图或表。

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)

类型参数

TEntity

要配置的实体类型。

TDependentEntity

此关系面向的实体类型。

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TDependentEntity>

要配置的实体类型的生成器。

name
String

视图或表的名称。

返回

同一生成器实例,以便可以链接多个调用。

适用于

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String)

配置实体在面向关系数据库时映射到的视图或表。

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)

类型参数

TEntity

要配置的实体类型。

TDependentEntity

此关系面向的实体类型。

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TDependentEntity>

要配置的实体类型的生成器。

name
String

视图或表的名称。

schema
String

视图或表的架构。

返回

同一生成器实例,以便可以链接多个调用。

适用于