語言

RelationalPropertyExtensions.GetMaxLength 方法

定義

多載

名稱 Description
GetMaxLength(IProperty, StoreObjectIdentifier)

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

GetMaxLength(IProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

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)

參數

property
IProperty

屬性。

storeObject
StoreObjectIdentifier

包含欄位的類表格儲存物件的識別碼。

傳回

最大長度,或若無,則為最大長度 null 。

適用於

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

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)

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

包含欄位的類表格儲存物件的識別碼。

傳回

最大長度,或 null 若無,則為最大長度。

適用於