Udostępnij za pośrednictwem


RelationalModelExtensions.SetMaxIdentifierLength Metoda

Definicja

Przeciążenia

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

Ustawia maksymalną dozwoloną długość identyfikatorów sklepu.

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

Ustawia maksymalną dozwoloną długość identyfikatorów sklepu.

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

Ustawia maksymalną dozwoloną długość identyfikatorów sklepu.

public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
public static int? SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? length, bool fromDataAnnotation = false);
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetMaxIdentifierLength (model As IConventionModel, length As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Parametry

model
IConventionModel

Model do ustawienia domyślnego schematu.

length
Nullable<Int32>

Wartość do ustawienia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

Ustawia maksymalną dozwoloną długość identyfikatorów sklepu.

public static void SetMaxIdentifierLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? length);
static member SetMaxIdentifierLength : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetMaxIdentifierLength (model As IMutableModel, length As Nullable(Of Integer))

Parametry

model
IMutableModel

Model do ustawienia domyślnego schematu.

length
Nullable<Int32>

Wartość do ustawienia.

Dotyczy