Udostępnij za pośrednictwem


RuntimeProperty.IReadOnlyProperty.GetMaxLength Metoda

Definicja

Pobiera maksymalną długość danych dozwolonych w tej właściwości. Jeśli na przykład właściwość jest wartością String , jest to maksymalna liczba znaków.

[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

Zwraca

Maksymalna długość, -1 jeśli właściwość nie ma maksymalnej długości lub null jeśli maksymalna długość nie została ustawiona.

Implementuje

Atrybuty

Dotyczy