PropertyBuilder.ValueGeneratedOnAddOrUpdate 方法

定义

将属性配置为在保存新实体或现有实体时生成值。

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

返回

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

适用于