Sprache

IConventionSequenceBuilder.HasMax(Nullable<Int64>, Boolean) Methode

Definition

Legt den Maximalwert für die Sequenz fest.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder? HasMax(long? maximum, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasMax(long? maximum, bool fromDataAnnotation = false);
abstract member HasMax : Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Public Function HasMax (maximum As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

Parameter

maximum
Nullable<Int64>

Der Maximalwert für die Sequenz.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Die gleiche Generatorinstanz, wenn die Konfiguration angewendet wurde, null andernfalls.

Gilt für: