RelationalReferenceOwnershipBuilderExtensions.ToTable 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ToTable(ReferenceOwnershipBuilder, String) |
配置实体在面向关系数据库时映射到的视图或表。 |
ToTable(ReferenceOwnershipBuilder, String, String) |
配置实体在面向关系数据库时映射到的视图或表。 |
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String) |
配置实体在面向关系数据库时映射到的视图或表。 |
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String) |
配置实体在面向关系数据库时映射到的视图或表。 |
ToTable(ReferenceOwnershipBuilder, String)
配置实体在面向关系数据库时映射到的视图或表。
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
参数
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder
要配置的实体类型的生成器。
- name
- String
视图或表的名称。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ToTable(ReferenceOwnershipBuilder, String, String)
配置实体在面向关系数据库时映射到的视图或表。
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
参数
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder
要配置的实体类型的生成器。
- name
- String
视图或表的名称。
- schema
- String
视图或表的架构。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String)
配置实体在面向关系数据库时映射到的视图或表。
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)
类型参数
- TEntity
要配置的实体类型。
- TRelatedEntity
此关系面向的实体类型。
参数
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder<TEntity,TRelatedEntity>
要配置的实体类型的生成器。
- name
- String
视图或表的名称。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String)
配置实体在面向关系数据库时映射到的视图或表。
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)
类型参数
- TEntity
要配置的实体类型。
- TRelatedEntity
此关系面向的实体类型。
参数
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder<TEntity,TRelatedEntity>
要配置的实体类型的生成器。
- name
- String
视图或表的名称。
- schema
- String
视图或表的架构。
返回
同一生成器实例,以便可以链接多个调用。