SqlServerModelExtensions.GetIdentitySeed 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
GetIdentitySeed(IModel) |
Returns the default identity seed. |
GetIdentitySeed(IReadOnlyModel) |
Returns the default identity seed. |
GetIdentitySeed(IModel)
Returns the default identity seed.
public static int GetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IModel -> int
<Extension()>
Public Function GetIdentitySeed (model As IModel) As Integer
Parameters
- model
- IModel
The model.
Returns
The default identity seed.
Applies to
GetIdentitySeed(IReadOnlyModel)
Returns the default identity seed.
public static long GetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel model);
static member GetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel -> int64
<Extension()>
Public Function GetIdentitySeed (model As IReadOnlyModel) As Long
Parameters
- model
- IReadOnlyModel
The model.
Returns
The default identity seed.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework