Share via


SqlServerModelExtensions.SetHiLoSequenceName Method

Definition

Overloads

SetHiLoSequenceName(IMutableModel, String)

Sets the name to use for the default hi-lo sequence.

SetHiLoSequenceName(IConventionModel, String, Boolean)

Sets the name to use for the default hi-lo sequence.

SetHiLoSequenceName(IMutableModel, String)

Sets the name to use for the default hi-lo sequence.

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)

Parameters

model
IMutableModel

The model.

name
String

The value to set.

Applies to

SetHiLoSequenceName(IConventionModel, String, Boolean)

Sets the name to use for the default hi-lo sequence.

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

Parameters

model
IConventionModel

The model.

name
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to