RelationalModelExtensions.SetMaxIdentifierLength Method

Definition

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.

length
Nullable<Int32>

The value to set.

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.

length
Nullable<Int32>

The value to set.

Applies to