SqlitePropertyBuilderExtensions.HasValueGenerationStrategy 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.
Configures the value generation strategy for the property when targeting SQLite.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy? strategy, bool fromDataAnnotation = false);
static member HasValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasValueGenerationStrategy (propertyBuilder As IConventionPropertyBuilder, strategy As Nullable(Of SqliteValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder
Parameters
- propertyBuilder
- IConventionPropertyBuilder
The builder for the property being configured.
- strategy
- Nullable<SqliteValueGenerationStrategy>
The strategy to use.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the configuration was applied,
null otherwise.