OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 ModelBuilder API 时,此类的实例会从方法返回,并且不会在应用程序代码中直接构造此类实例。
[System.Runtime.CompilerServices.Nullable(0)]
public class OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
public class OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
[<System.Runtime.CompilerServices.Nullable(0)>]
type OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTableBuilder
interface IInfrastructure<OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity>>
type OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationTableBuilder
interface IInfrastructure<OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity>>
Public Class OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)
Inherits OwnedNavigationTableBuilder
Implements IInfrastructure(Of OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity))
类型参数
- TOwnerEntity
拥有关系的实体类型。
- TDependentEntity
关系的依赖实体类型。
- 继承
- 特性
- 实现
-
IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>
构造函数
| 名称 | 说明 |
|---|---|
| OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>(Nullable<StoreObjectIdentifier>, OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
属性
| 名称 | 说明 |
|---|---|
| Metadata |
正在配置的实体类型。 (继承自 OwnedNavigationTableBuilder) |
| Name |
指定的表名。 (继承自 OwnedNavigationTableBuilder) |
| Schema |
指定的表架构。 (继承自 OwnedNavigationTableBuilder) |
| StoreObject |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 (继承自 OwnedNavigationTableBuilder) |
方法
| 名称 | 说明 |
|---|---|
| ExcludeFromMigrations(Boolean) |
配置要被迁移忽略的表。 |
| GetStoreObjectIdentifier() |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 (继承自 OwnedNavigationTableBuilder) |
| HasCheckConstraint(String, String) |
针对关系数据库时配置数据库检查约束。 (继承自 OwnedNavigationTableBuilder) |
| HasComment(String) |
配置要应用于表的注释 |
| HasTrigger(String) |
在表上配置数据库触发器。 (继承自 OwnedNavigationTableBuilder) |
| Property(String) |
将属性映射到当前表上的列,并返回一个对象,如果属性映射到多个表,该对象可用于提供特定于表的配置。 (继承自 OwnedNavigationTableBuilder) |
| Property<TProperty>(Expression<Func<TDependentEntity,TProperty>>) |
将属性映射到当前表上的列,并返回一个对象,如果属性映射到多个表,该对象可用于提供特定于表的配置。 |
| Property<TProperty>(String) |
将属性映射到当前表上的列,并返回一个对象,如果属性映射到多个表,该对象可用于提供特定于表的配置。 (继承自 OwnedNavigationTableBuilder) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>.Instance |
使用 ModelBuilder API 时,此类的实例会从方法返回,并且不会在应用程序代码中直接构造此类实例。 |
| IInfrastructure<OwnedNavigationBuilder>.Instance |
使用 ModelBuilder API 时,此类的实例会从方法返回,并且不会在应用程序代码中直接构造此类实例。 (继承自 OwnedNavigationTableBuilder) |