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

要执行的操作。

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于