Share via


MutablePropertyExtensions.SetMaxLength Metodo

Definizione

Imposta la lunghezza massima dei dati consentiti in questa proprietà. Ad esempio, se la proprietà è un String ', questo è il numero massimo di caratteri.

public static void SetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? maxLength);
static member SetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetMaxLength (property As IMutableProperty, maxLength As Nullable(Of Integer))

Parametri

property
IMutableProperty

Proprietà da impostare la lunghezza massima di .

maxLength
Nullable<Int32>

Lunghezza massima dei dati consentiti in questa proprietà.

Si applica a