Bagikan melalui


SequenceBuilder.IConventionSequenceBuilder.CanSetType(Type, Boolean) Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah jenis yang diberikan dapat diatur untuk urutan.

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

Parameter

type
Type

Jenis nilai yang dikembalikan oleh urutan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

true jika jenis yang diberikan dapat diatur untuk urutan.

Penerapan

Berlaku untuk