Condividi tramite


SqlServerModelExtensions.SetHiLoSequenceName Metodo

Definizione

Overload

SetHiLoSequenceName(IMutableModel, String)

Imposta il nome da utilizzare per la sequenza hi-lo predefinita.

SetHiLoSequenceName(IConventionModel, String, Boolean)

Imposta il nome da utilizzare per la sequenza hi-lo predefinita.

SetHiLoSequenceName(IMutableModel, String)

Imposta il nome da utilizzare per la sequenza hi-lo predefinita.

public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? name);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetHiLoSequenceName (model As IMutableModel, name As String)

Parametri

model
IMutableModel

Modello.

name
String

Il valore da impostare.

Si applica a

SetHiLoSequenceName(IConventionModel, String, Boolean)

Imposta il nome da utilizzare per la sequenza hi-lo predefinita.

public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string? SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? name, bool fromDataAnnotation = false);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetHiLoSequenceName (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetHiLoSequenceName (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parametri

model
IConventionModel

Modello.

name
String

Il valore da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a