共用方式為


IConventionSequenceBuilder.HasType(Type, Boolean) 方法

定義

設定序列所傳回的數值型別。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasType (Type type, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder? HasType (Type? type, bool fromDataAnnotation = false);
abstract member HasType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Public Function HasType (type As Type, Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

參數

type
Type

序列所傳回的值型別。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

適用於