Share via


RelationalPropertyExtensions.SetIsFixedLength Metodo

Definizione

Overload

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Imposta un flag che indica se la proprietà è in grado di archiviare solo dati a lunghezza fissa, ad esempio stringhe.

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Imposta un flag che indica se la proprietà è in grado di archiviare solo dati a lunghezza fissa, ad esempio stringhe.

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Imposta un flag che indica se la proprietà è in grado di archiviare solo dati a lunghezza fissa, ad esempio stringhe.

public static void SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, bool? fixedLength);
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsFixedLength (property As IMutableProperty, fixedLength As Nullable(Of Boolean))

Parametri

property
IMutableProperty

Proprietà.

fixedLength
Nullable<Boolean>

Valore che indica se la proprietà è vincolata ai valori di lunghezza fissa.

Si applica a

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Imposta un flag che indica se la proprietà è in grado di archiviare solo dati a lunghezza fissa, ad esempio stringhe.

public static void SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool? fixedLength, bool fromDataAnnotation = false);
public static bool? SetIsFixedLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool? fixedLength, bool fromDataAnnotation = false);
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<bool> * bool -> unit
static member SetIsFixedLength : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Sub SetIsFixedLength (property As IConventionProperty, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIsFixedLength (property As IConventionProperty, fixedLength As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

Parametri

property
IConventionProperty

Proprietà.

fixedLength
Nullable<Boolean>

Valore che indica se la proprietà è vincolata ai valori di lunghezza fissa.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a