Freigeben über


SequenceBuilder.IConventionSequenceBuilder.HasType(Type, Boolean) Methode

Definition

Legt den Typ der von der Sequenz zurückgegebenen Werte fest.

Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder IConventionSequenceBuilder.HasType (Type type, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.HasType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.HasType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Function HasType (type As Type, fromDataAnnotation As Boolean) As IConventionSequenceBuilder Implements IConventionSequenceBuilder.HasType

Parameter

type
Type

Der Typ der von der Sequenz zurückgegebenen Werte.

fromDataAnnotation
Boolean

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

Gibt zurück

Derselbe Generator instance, wenn die Konfiguration angewendet wurde, andernfallsnull.

Implementiert

Gilt für: