Udostępnij za pośrednictwem


RelationalElementTypeExtensions.SetIsFixedLength Metoda

Definicja

Przeciążenia

SetIsFixedLength(IMutableElementType, Nullable<Boolean>)

Ustawia flagę wskazującą, czy elementy mogą przechowywać tylko dane o stałej długości, takie jak ciągi.

SetIsFixedLength(IConventionElementType, Nullable<Boolean>, Boolean)

Ustawia flagę wskazującą, czy elementy mogą przechowywać tylko dane o stałej długości, takie jak ciągi.

SetIsFixedLength(IMutableElementType, Nullable<Boolean>)

Ustawia flagę wskazującą, czy elementy mogą przechowywać tylko dane o stałej długości, takie jak ciągi.

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

Parametry

elementType
IMutableElementType

Element.

fixedLength
Nullable<Boolean>

Wartość wskazująca, czy elementy są ograniczone do wartości o stałej długości.

Dotyczy

SetIsFixedLength(IConventionElementType, Nullable<Boolean>, Boolean)

Ustawia flagę wskazującą, czy elementy mogą przechowywać tylko dane o stałej długości, takie jak ciągi.

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

Parametry

elementType
IConventionElementType

Element.

fixedLength
Nullable<Boolean>

Wartość wskazująca, czy element jest ograniczony do wartości o stałej długości.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Skonfigurowana wartość.

Dotyczy