SqlServerOnDeleteConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为联接实体类型上的外键配置 OnDelete 行为的约定,用于自引用跳过导航
public class SqlServerOnDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.CascadeDeleteConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class SqlServerOnDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.CascadeDeleteConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
type SqlServerOnDeleteConvention = class
inherit CascadeDeleteConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IConvention
type SqlServerOnDeleteConvention = class
inherit CascadeDeleteConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
Public Class SqlServerOnDeleteConvention
Inherits CascadeDeleteConvention
Implements ISkipNavigationForeignKeyChangedConvention
Public Class SqlServerOnDeleteConvention
Inherits CascadeDeleteConvention
Implements IEntityTypeAnnotationChangedConvention, ISkipNavigationForeignKeyChangedConvention
- 继承
- 实现
注解
有关详细信息和示例,请参阅模型构建约定和使用 EF Core 访问SQL Server和Azure SQL数据库。
构造函数
SqlServerOnDeleteConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
创建 SqlServerOnDeleteConvention 的新实例。 |
属性
Dependencies |
此服务的依赖项。 (继承自 CascadeDeleteConvention) |
RelationalDependencies |
此服务的关系提供程序特定的依赖项。 |