共用方式為


ISqlServerModelAnnotations.ValueGenerationStrategy 屬性

定義

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

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

屬性值

適用於