RelationalModelExtensions.SetMaxIdentifierLength 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetMaxIdentifierLength(IMutableModel, Nullable<Int32>) |
設定商店識別碼允許的最大長度。 |
| SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, 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
設定預設架構的模型。
適用於
SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)
設定商店識別碼允許的最大長度。
public static int? SetMaxIdentifierLength(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
public static void SetMaxIdentifierLength(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
<Extension()>
Public Function SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
<Extension()>
Public Sub SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
參數
- model
- IConventionModel
設定預設架構的模型。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
設定值。