NonNullableNavigationConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种约定,用于根据需要将不可为空的导航配置为主体实体类型。
public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
type NonNullableNavigationConvention = class
inherit NonNullableConventionBase
interface INavigationAddedConvention
interface IConvention
type NonNullableNavigationConvention = class
inherit NonNullableConventionBase
interface INavigationAddedConvention
interface IConvention
interface IForeignKeyPrincipalEndChangedConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements INavigationAddedConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention
- 继承
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
NonNullableNavigationConvention(ProviderConventionSetBuilderDependencies) |
创建 NonNullableNavigationConvention 的新实例。 |
属性
Dependencies |
此服务的依赖项。 (继承自 NonNullableConventionBase) |