SqlitePropertyExtensions.GetValueGenerationStrategy 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.
Overloads
| Name | Description |
|---|---|
| GetValueGenerationStrategy(IReadOnlyProperty) |
Returns the SqliteValueGenerationStrategy to use for the property. |
| GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides) |
Returns the SqliteValueGenerationStrategy to use for the property. |
| GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier) |
Returns the SqliteValueGenerationStrategy to use for the property. |
GetValueGenerationStrategy(IReadOnlyProperty)
- Source:
- SqlitePropertyExtensions.cs
Returns the SqliteValueGenerationStrategy to use for the property.
public static Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy GetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IReadOnlyProperty) As SqliteValueGenerationStrategy
Parameters
- property
- IReadOnlyProperty
The property.
Returns
The strategy to use for the property.
Applies to
GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)
- Source:
- SqlitePropertyExtensions.cs
Returns the SqliteValueGenerationStrategy to use for the property.
public static Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy? GetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides overrides);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (overrides As IReadOnlyRelationalPropertyOverrides) As Nullable(Of SqliteValueGenerationStrategy)
Parameters
- overrides
- IReadOnlyRelationalPropertyOverrides
The property overrides.
Returns
The strategy, or None if none was set.
Remarks
If no strategy is set for the property, then the strategy to use will be taken from the IModel.
Applies to
GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)
- Source:
- SqlitePropertyExtensions.cs
Returns the SqliteValueGenerationStrategy to use for the property.
public static Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy GetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As SqliteValueGenerationStrategy
Parameters
- property
- IReadOnlyProperty
The property.
- storeObject
- StoreObjectIdentifier
The identifier of the store object.
Returns
The strategy to use for the property.