Share via


SqlitePropertyBuilderExtensions.CanSetValueGenerationStrategy Method

Definition

Returns a value indicating whether the given value generation strategy can be set for the property.

public static bool CanSetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy? strategy, bool fromDataAnnotation = false);
static member CanSetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy> * bool -> bool
<Extension()>
Public Function CanSetValueGenerationStrategy (propertyBuilder As IConventionPropertyBuilder, strategy As Nullable(Of SqliteValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property.

strategy
Nullable<SqliteValueGenerationStrategy>

The strategy.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given value generation strategy can be set for the property.

Applies to