DeleteBehaviorAttributeConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據 屬性所套用 的 DeleteBehaviorAttribute 來設定刪除行為的慣例。
public class DeleteBehaviorAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.DeleteBehaviorAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class DeleteBehaviorAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.DeleteBehaviorAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
type DeleteBehaviorAttributeConvention = class
inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
interface INavigationAddedConvention
interface IConvention
interface IForeignKeyPrincipalEndChangedConvention
interface IModelFinalizingConvention
type DeleteBehaviorAttributeConvention = class
inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
interface INavigationAddedConvention
interface IConvention
interface IForeignKeyPrincipalEndChangedConvention
interface IComplexPropertyAddedConvention
interface IModelFinalizingConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IComplexPropertyAddedConvention, IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
- 繼承
- 實作
備註
如需詳細資訊和範例,請參閱 模型建置慣例 。
建構函式
DeleteBehaviorAttributeConvention(ProviderConventionSetBuilderDependencies) |
初始化 DeleteBehaviorAttributeConvention 類別的新執行個體。 |
屬性
Dependencies |
此服務的相依性。 (繼承來源 PropertyAttributeConventionBase<TAttribute>) |