SequenceBuilder.IConventionSequenceBuilder.CanSetType(Type, Boolean) 方法

定义

返回一个值,该值指示是否可以为序列设置给定类型。

bool IConventionSequenceBuilder.CanSetType (Type type, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.CanSetType : Type * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.CanSetType : Type * bool -> bool
Function CanSetType (type As Type, fromDataAnnotation As Boolean) As Boolean Implements IConventionSequenceBuilder.CanSetType

参数

type
Type

序列返回的值的类型。

fromDataAnnotation
Boolean

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

返回

true 如果可以为序列设置给定类型,则为 。

实现

适用于