PropertyBuilder.ValueGeneratedOnUpdateSometimes 方法

定义

将属性配置为在保存现有实体时在特定条件下生成值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ValueGeneratedOnUpdateSometimes ();
abstract member ValueGeneratedOnUpdateSometimes : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
override this.ValueGeneratedOnUpdateSometimes : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
Public Overridable Function ValueGeneratedOnUpdateSometimes () As PropertyBuilder

返回

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

适用于