PropertyExtensions.GetMaxLength(IProperty) 方法

定義

取得這個屬性中允許的資料長度上限。 例如,如果 屬性是 String ,則這是字元數目上限。

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)

參數

property
IProperty

要取得最大長度的 屬性。

傳回

最大長度,如果未定義,則 null 為 。

適用於