OwnedTypesConvention 类

定义

注意

Entity types with defining navigations have been replaced by shared-type entity types

一种约定,该约定将拥有的实体类型配置为将导航定义为拥有的实体类型,而不定义导航(如果只有一个此类型的导航)。

public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
[System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")]
public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
[<System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")>]
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
Public Class OwnedTypesConvention
Implements IEntityTypeRemovedConvention
继承
OwnedTypesConvention
属性
实现

注解

有关详细信息 ,请参阅模型生成约定

构造函数

OwnedTypesConvention(ProviderConventionSetBuilderDependencies)
已过时.

创建 OwnedTypesConvention 的新实例。

属性

Dependencies
已过时.

此服务的依赖项。

方法

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)
已过时.

在从模型中删除实体类型后调用。

适用于