Condividi tramite


SequenceBuilder.IConventionSequenceBuilder.HasMax Metodo

Definizione

Imposta il valore massimo per la sequenza.

Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder IConventionSequenceBuilder.HasMax (long? maximum, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.HasMax : Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.HasMax : Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Function HasMax (maximum As Nullable(Of Long), fromDataAnnotation As Boolean) As IConventionSequenceBuilder Implements IConventionSequenceBuilder.HasMax

Parametri

maximum
Nullable<Int64>

Valore massimo per la sequenza.

fromDataAnnotation
Boolean

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

Restituisce

Stessa istanza del generatore se la configurazione è stata applicata, null in caso contrario.

Implementazioni

Si applica a