共用方式為


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

傳回

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

適用於