RelationalModelExtensions.SetMaxIdentifierLength 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
要为其设置默认架构的模型。
- 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
要为其设置默认架构的模型。