Partager via


IConventionSequenceBuilder.HasType(Type, Boolean) Méthode

Définition

Définit le type de valeurs retournées par la séquence.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasType (Type type, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder? HasType (Type? type, bool fromDataAnnotation = false);
abstract member HasType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Public Function HasType (type As Type, Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

Paramètres

type
Type

Type de valeurs retournées par la séquence.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Le même générateur instance si la configuration a été appliquée, null sinon.

S’applique à