PrimitiveCollectionBuilder.ValueGeneratedOnAddOrUpdate 方法

定义

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

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

返回

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

适用于