IConventionSequence.SetType(Type, Boolean) Method

Definition

Sets the Type of values returned by the sequence.

public Type SetType (Type type, bool fromDataAnnotation = false);
public Type? SetType (Type? type, bool fromDataAnnotation = false);
abstract member SetType : Type * bool -> Type
Public Function SetType (type As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parameters

type
Type

The Type of values returned by the sequence.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to