共用方式為


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 如果可以設定序列的指定型別,則為 。

實作

適用於