Share via


RelationalPropertyExtensions.GetMaxLength Method

Definition

Overloads

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

GetMaxLength(IProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

public static int? GetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetMaxLength (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The maximum length, or null if none is defined.

Applies to

GetMaxLength(IProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

public static int? GetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetMaxLength (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the table-like store object containing the column.

Returns

The maximum length, or null if none if defined.

Applies to