共用方式為


RuntimeProperty.IReadOnlyProperty.GetMaxLength 方法

定義

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

[System.Diagnostics.DebuggerStepThrough]
int? IReadOnlyProperty.GetMaxLength ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.GetMaxLength : unit -> Nullable<int>
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.GetMaxLength : unit -> Nullable<int>
Function GetMaxLength () As Nullable(Of Integer) Implements IReadOnlyProperty.GetMaxLength

傳回

-1如果屬性沒有最大長度,或是 null 尚未設定最大長度,則為最大長度。

實作

屬性

適用於