共用方式為


ReferenceOwnershipBuilder.OnDelete(DeleteBehavior) 方法

定義

設定刪除主體或中斷關聯性時,刪除作業如何套用至關聯性中的相依實體。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder OnDelete (Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior);
abstract member OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
override this.OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceOwnershipBuilder

參數

deleteBehavior
DeleteBehavior

要執行的動作。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於