SqlServerModelExtensions.GetValueGenerationStrategy Method
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.
GetValueGenerationStrategy(IModel) |
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set. |
GetValueGenerationStrategy(IReadOnlyModel) |
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set. |
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (model As IModel) As Nullable(Of SqlServerValueGenerationStrategy)
Parameters
- model
- IModel
The model.
Returns
The default SqlServerValueGenerationStrategy.
Applies to
Entity Framework Core 5.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0 |
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
Returns the SqlServerValueGenerationStrategy to use for properties of keys in the model, unless the property has a strategy explicitly set.
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel model);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (model As IReadOnlyModel) As Nullable(Of SqlServerValueGenerationStrategy)
Parameters
- model
- IReadOnlyModel
The model.
Returns
The default SqlServerValueGenerationStrategy.
Applies to
Entity Framework Core 9.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: