Share via


OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity> 类

定义

此类的实例在使用 API 时从方法中返回, ModelBuilder 它不是在应用程序代码中直接构造的。

public class OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
type OwnedNavigationViewBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
    inherit OwnedNavigationViewBuilder
    interface IInfrastructure<OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity>>
Public Class OwnedNavigationViewBuilder(Of TOwnerEntity, TDependentEntity)
Inherits OwnedNavigationViewBuilder
Implements IInfrastructure(Of OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity))

类型参数

TOwnerEntity

拥有关系的实体类型。

TDependentEntity

关系的依赖实体类型。

继承
OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>
实现
IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>

构造函数

OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>(StoreObjectIdentifier, OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,而无需通知。 仅应在代码中非常谨慎地直接使用它,并且知道在更新到新的 Entity Framework Core 版本时这样做可能会导致应用程序失败。

属性

Name

指定的视图名称。

(继承自 OwnedNavigationViewBuilder)
Schema

指定的视图架构。

(继承自 OwnedNavigationViewBuilder)
StoreObject

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,而无需通知。 仅应在代码中非常谨慎地直接使用它,并且知道在更新到新的 Entity Framework Core 版本时这样做可能会导致应用程序失败。

(继承自 OwnedNavigationViewBuilder)

方法

Property(String)

将 属性映射到当前视图上的列,并返回一个 对象,该对象可用于提供特定于视图的配置(如果属性映射到多个视图)。

(继承自 OwnedNavigationViewBuilder)
Property<TProperty>(Expression<Func<TDependentEntity,TProperty>>)

将 属性映射到当前视图上的列,并返回一个 对象,该对象可用于提供特定于视图的配置(如果属性映射到多个视图)。

Property<TProperty>(String)

将 属性映射到当前视图上的列,并返回一个 对象,该对象可用于提供特定于视图的配置(如果属性映射到多个视图)。

(继承自 OwnedNavigationViewBuilder)

显式接口实现

IInfrastructure<OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>>.Instance

此类的实例在使用 API 时从方法中返回, ModelBuilder 它不是在应用程序代码中直接构造的。

IInfrastructure<OwnedNavigationBuilder>.Instance

此类的实例在使用 API 时从方法中返回, ModelBuilder 它不是在应用程序代码中直接构造的。

(继承自 OwnedNavigationViewBuilder)

扩展方法

GetInfrastructure<T>(IInfrastructure<T>)

从使用 IInfrastructure<T>隐藏的属性获取值。

此方法通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。

适用于