IConventionSequenceBuilder.HasType(Type, Boolean) Método

Definição

Define o tipo de valores retornados pela sequência.

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

Parâmetros

type
Type

O tipo de valores retornados pela sequência.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

A mesma instância do construtor se a configuração tiver sido aplicada, null caso contrário.

Aplica-se a