Share via


SqlServerPropertyExtensions.SetSequenceName Metodo

Definizione

Overload

SetSequenceName(IMutableProperty, String)

Imposta il nome da usare per la sequenza di generazione del valore della chiave.

SetSequenceName(IConventionProperty, String, Boolean)

Imposta il nome da usare per la sequenza di generazione del valore della chiave.

SetSequenceName(IMutableProperty, String)

Imposta il nome da usare per la sequenza di generazione del valore della chiave.

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

Parametri

property
IMutableProperty

Proprietà.

name
String

Nome della sequenza da utilizzare.

Si applica a

SetSequenceName(IConventionProperty, String, Boolean)

Imposta il nome da usare per la sequenza di generazione del valore della chiave.

public static string? SetSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetSequenceName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parametri

property
IConventionProperty

Proprietà.

name
String

Nome della sequenza da utilizzare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a