Condividi tramite


Proprietà EdmProperty.MaxLength

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene o imposta la lunghezza massima della proprietà.

Spazio dei nomi:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Property MaxLength As Nullable(Of Integer)
    Get 
    Set
'Utilizzo
Dim instance As EdmProperty 
Dim value As Nullable(Of Integer)

value = instance.MaxLength

instance.MaxLength = value
public Nullable<int> MaxLength { get; set; }
public:
property Nullable<int> MaxLength {
    Nullable<int> get ();
    void set (Nullable<int> value);
}
member MaxLength : Nullable<int> with get, set
function get MaxLength () : Nullable<int>
function set MaxLength (value : Nullable<int>)

Valore proprietà

Tipo: System.Nullable<Int32>
Lunghezza massima della proprietà.

Vedere anche

Riferimento

EdmProperty Classe

Spazio dei nomi System.Data.Entity.Core.Metadata.Edm