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)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

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

C#
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
C#
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? name);

Parameters

model
IMutableModel

The model.

name
String

The value to set.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SetHiLoSequenceName(IConventionModel, String, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

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

C#
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
C#
public static string SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
C#
public static string? SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? name, bool fromDataAnnotation = false);

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

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0