Share via


SqlServerPropertyAnnotations.CanSetValueGenerationStrategy Method

Definition

Checks whether or not it is valid to set the given SqlServerValueGenerationStrategy for the property.

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

Parameters

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to check.

Returns

True if it is valid to set; false otherwise.

Applies to