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

参数

返回

True 如果设置有效,则为 ; false 否则。

适用于