共用方式為


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

傳回

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

適用於