SqlServerOnDeleteConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A convention that configures the OnDelete behavior for foreign keys on the join entity type for self-referencing skip navigations
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
- Inheritance
- Implements
Remarks
See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Constructors
SqlServerOnDeleteConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Creates a new instance of SqlServerOnDeleteConvention. |
Properties
Dependencies |
Dependencies for this service. (Inherited from CascadeDeleteConvention) |
RelationalDependencies |
Relational provider-specific dependencies for this service. |
Methods
Applies to
Entity Framework