共用方式為


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)

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於