OwnedTypesConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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>) |
已过时.
在从模型中删除实体类型后调用。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈