SqlServerModelAnnotations.SetValueGenerationStrategy 方法

定义

尝试设置 SqlServerValueGenerationStrategy 要用于模型中键的属性的 。

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

参数

value
Nullable<SqlServerValueGenerationStrategy>

要设置的值。

返回

True 如果设置了批注,则为 ; false 否则。

适用于