語言

PropertyExtensions.GetMaxLength(IProperty) 方法

定義

取得此屬性允許的最大資料長度。 例如,若性質為 a 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 。

適用於