RelationalModelExtensions.SetMaxIdentifierLength 方法

定義

多載

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

設定存放區識別碼允許的最大長度。

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

設定存放區識別碼允許的最大長度。

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

設定存放區識別碼允許的最大長度。

public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
public static int? SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

參數

model
IConventionModel

要為其設定預設架構的模型。

length
Nullable<Int32>

要設定的值。

fromDataAnnotation
Boolean

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

傳回

已設定的值。

適用於

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

設定存放區識別碼允許的最大長度。

public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? length);
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetMaxIdentifierLength (model As IMutableModel, length As Nullable(Of Integer))

參數

model
IMutableModel

要為其設定預設架構的模型。

length
Nullable<Int32>

要設定的值。

適用於