IConventionSequence.SetClrType(Type, Boolean) Method

Definition

Caution

Use SetType

Sets the Type of values returned by the sequence.

public void SetClrType (Type clrType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetType")]
public Type SetClrType (Type type, bool fromDataAnnotation = false);
[System.Obsolete("Use SetType")]
public Type? SetClrType (Type? type, bool fromDataAnnotation = false);
abstract member SetClrType : Type * bool -> unit
[<System.Obsolete("Use SetType")>]
abstract member SetClrType : Type * bool -> Type
Public Sub SetClrType (clrType As Type, Optional fromDataAnnotation As Boolean = false)
Public Function SetClrType (type As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parameters

clrTypetype
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.

Attributes

Applies to