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>

要设置的值。

适用于