SqlitePropertyBuilderExtensions.CanSetValueGenerationStrategy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.