RelationalPropertyExtensions.SetIsFixedLength Methode

Definition

Überlädt

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Legt ein Flag fest, das angibt, ob die Eigenschaft nur Daten mit fester Länge speichern kann, z. B. Zeichenfolgen.

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Legt ein Flag fest, das angibt, ob die Eigenschaft nur Daten mit fester Länge speichern kann, z. B. Zeichenfolgen.

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Legt ein Flag fest, das angibt, ob die Eigenschaft nur Daten mit fester Länge speichern kann, z. B. Zeichenfolgen.

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))

Parameter

property
IMutableProperty

Die Eigenschaft.

fixedLength
Nullable<Boolean>

Ein Wert, der angibt, ob die Eigenschaft auf Werte mit fester Länge beschränkt ist.

Gilt für:

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Legt ein Flag fest, das angibt, ob die Eigenschaft nur Daten mit fester Länge speichern kann, z. B. Zeichenfolgen.

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)

Parameter

property
IConventionProperty

Die Eigenschaft.

fixedLength
Nullable<Boolean>

Ein Wert, der angibt, ob die Eigenschaft auf Werte mit fester Länge beschränkt ist.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für: