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)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Sets the maximum length allowed for store identifiers.

C#
public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
C#
public static int? SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);

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

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Sets the maximum length allowed for store identifiers.

C#
public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? length);

Parameters

model
IMutableModel

The model to set the default schema for.

length
Nullable<Int32>

The value to set.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0