SqlServerModelExtensions.SetIdentitySeed Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean) |
Establece la inicialización de identidad predeterminada. |
SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean) |
Establece la inicialización de identidad predeterminada. |
SetIdentitySeed(IMutableModel, Nullable<Int32>) |
Establece la inicialización de identidad predeterminada. |
SetIdentitySeed(IMutableModel, Nullable<Int64>) |
Establece la inicialización de identidad predeterminada. |
SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)
Establece la inicialización de identidad predeterminada.
public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, long? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int64> * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)
Parámetros
- model
- IConventionModel
Modelo.
- fromDataAnnotation
- Boolean
Indica si la configuración se especificó mediante una anotación de datos.
Devoluciones
El valor configurado.
Se aplica a
SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)
Establece la inicialización de identidad predeterminada.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? seed, bool fromDataAnnotation = false);
public static int? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
Parámetros
- model
- IConventionModel
Modelo.
- fromDataAnnotation
- Boolean
Indica si la configuración se especificó mediante una anotación de datos.
Devoluciones
El valor configurado.
Se aplica a
SetIdentitySeed(IMutableModel, Nullable<Int32>)
Establece la inicialización de identidad predeterminada.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Integer))
Parámetros
- model
- IMutableModel
Modelo.
Se aplica a
SetIdentitySeed(IMutableModel, Nullable<Int64>)
Establece la inicialización de identidad predeterminada.
public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Long))
Parámetros
- model
- IMutableModel
Modelo.