RelationalModelExtensions.SetMaxIdentifierLength Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean) |
Sets the maximum length allowed for store identifiers. |
SetMaxIdentifierLength(IMutableModel, Nullable<Int32>) |
Sets the maximum length allowed for store identifiers. |
SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)
Sets the maximum length allowed for store identifiers.
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)
Parameters
- model
- IConventionModel
The model to set the default schema for.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)
Sets the maximum length allowed for store identifiers.
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))
Parameters
- model
- IMutableModel
The model to set the default schema for.
Applies to
Entity Framework