共用方式為


SqlServerModelAnnotations.ValueGenerationStrategy 屬性

定義

SqlServerValueGenerationStrategy要用於模型中索引鍵屬性的 ,除非屬性已明確設定不同的策略。

public virtual Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? ValueGenerationStrategy { get; set; }
member this.ValueGenerationStrategy : Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> with get, set
Public Overridable Property ValueGenerationStrategy As Nullable(Of SqlServerValueGenerationStrategy)

屬性值

適用於