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 |
此服務的關聯式提供者特定相依性。 |