共用方式為


SqlServerPropertyAnnotations.CanSetValueGenerationStrategy 方法

定義

檢查是否有效為 屬性設定指定的 SqlServerValueGenerationStrategy

protected virtual bool CanSetValueGenerationStrategy (Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
abstract member CanSetValueGenerationStrategy : Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> bool
override this.CanSetValueGenerationStrategy : Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> bool
Protected Overridable Function CanSetValueGenerationStrategy (value As Nullable(Of SqlServerValueGenerationStrategy)) As Boolean

參數

value
Nullable<SqlServerValueGenerationStrategy>

要檢查的策略。

傳回

True 如果設定有效,則為 ; false 否則。

適用於