Share via


PropertyExtensions.GetMaxLength(IProperty) Metodo

Definizione

Ottiene la lunghezza massima dei dati consentiti in questa proprietà. Ad esempio, se la proprietà è un String oggetto , si tratta del numero massimo di caratteri.

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)

Parametri

property
IProperty

Proprietà di cui ottenere la lunghezza massima.

Restituisce

Lunghezza massima oppure null se non è stata definita alcuna proprietà.

Si applica a