Udostępnij za pośrednictwem


RelationalElementTypeBuilderExtensions.CanSetFixedLength Metoda

Definicja

Zwraca wartość wskazującą, czy elementy można skonfigurować jako stałą długość, czy nie.

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

Parametry

elementTypeBuilder
IConventionElementTypeBuilder

konstruktor dla konfigurowanych elementów.

fixedLength
Nullable<Boolean>

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

fromDataAnnotation
Boolean

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

Zwraca

true jeśli elementy można skonfigurować jako stałą długość lub nie.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy