PropertyExtensions.GetMaxLength(IProperty) Yöntem

Tanım

Bu özellikte izin verilen maksimum veri uzunluğunu alır. Örneğin, özelliği bir ise String en fazla karakter sayısı bu olur.

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

Parametreler

property
IProperty

Maksimum uzunluğu elde etmek için özelliği.

Döndürülenler

Nullable<Int32>

Maksimum uzunluk veya null tanımlansa hiçbiri.

Şunlara uygulanır