共用方式為


ReferenceReferenceBuilder<TEntity,TRelatedEntity>.OnDelete 方法

定義

多載

OnDelete(DeleteBehavior)

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

OnDelete(DeleteBehavior)

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

OnDelete(DeleteBehavior)

來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs
來源:
ReferenceReferenceBuilder%60.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> OnDelete (Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior);
override this.OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

參數

deleteBehavior
DeleteBehavior

要執行的動作。

傳回

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

適用於

OnDelete(DeleteBehavior)

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> OnDelete (Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior deleteBehavior);
override this.OnDelete : Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

參數

deleteBehavior
DeleteBehavior

要執行的動作。

傳回

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

適用於