ComplexTypePropertyBuilder<TProperty>.ValueGeneratedOnUpdateSometimes 方法

定义

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> ValueGeneratedOnUpdateSometimes ();
override this.ValueGeneratedOnUpdateSometimes : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
Public Overridable Function ValueGeneratedOnUpdateSometimes () As ComplexTypePropertyBuilder(Of TProperty)

返回

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

适用于