語言

ReferenceCollectionBuilder<TPrincipalEntity,TDependentEntity>.OnDelete 方法

定義

多載

名稱 Description
OnDelete(DeleteBehavior)

配置當主體被刪除或關係中斷時,對關係中相依實體套用的操作。

OnDelete(DeleteBehavior)

配置當主體被刪除或關係中斷時,如何對關聯中的相依實體套用刪除操作。

OnDelete(DeleteBehavior)

來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs
來源:
ReferenceCollectionBuilder`.cs

配置當主體被刪除或關係中斷時,對關係中相依實體套用的操作。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TPrincipalEntity,TDependentEntity> OnDelete(Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior);
override this.OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'PrincipalEntity, 'DependentEntity (requires 'PrincipalEntity : null and 'DependentEntity : null)>
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceCollectionBuilder(Of TPrincipalEntity, TDependentEntity)

參數

deleteBehavior
DeleteBehavior

要執行的動作。

傳回

同一個建構器實例,這樣可以串接多個設定呼叫。

適用於

OnDelete(DeleteBehavior)

配置當主體被刪除或關係中斷時,如何對關聯中的相依實體套用刪除操作。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TPrincipalEntity,TDependentEntity> OnDelete(Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior deleteBehavior);
override this.OnDelete : Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'PrincipalEntity, 'DependentEntity (requires 'PrincipalEntity : null and 'DependentEntity : null)>
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceCollectionBuilder(Of TPrincipalEntity, TDependentEntity)

參數

deleteBehavior
DeleteBehavior

要執行的動作。

傳回

同一個建構器實例,這樣可以串接多個設定呼叫。

適用於