ReferenceReferenceBuilder.OnDelete 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OnDelete(DeleteBehavior) |
配置在删除主体或断开关系时应用于关系中依赖实体的操作。 |
OnDelete(DeleteBehavior) |
配置删除主体或断开关系时如何对关系中的依赖实体应用删除操作。 |
OnDelete(DeleteBehavior)
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
- Source:
- ReferenceReferenceBuilder.cs
配置在删除主体或断开关系时应用于关系中依赖实体的操作。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder OnDelete (Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior);
abstract member OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder
override this.OnDelete : Microsoft.EntityFrameworkCore.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceReferenceBuilder
参数
- deleteBehavior
- DeleteBehavior
要执行的操作。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
OnDelete(DeleteBehavior)
配置删除主体或断开关系时如何对关系中的依赖实体应用删除操作。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder OnDelete (Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior deleteBehavior);
abstract member OnDelete : Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder
override this.OnDelete : Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder
Public Overridable Function OnDelete (deleteBehavior As DeleteBehavior) As ReferenceReferenceBuilder
参数
- deleteBehavior
- DeleteBehavior
要执行的操作。
返回
同一生成器实例,以便可以链接多个配置调用。