IConventionSequence.SetType(Type, Boolean) 方法

定义

Type设置序列返回的值的 。

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

参数

type
Type

Type序列返回的值的 。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于