RelationalModelExtensions.SetMaxIdentifierLength Méthode

Définition

Surcharges

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

Définit la longueur maximale autorisée pour les identificateurs de magasin.

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

Définit la longueur maximale autorisée pour les identificateurs de magasin.

SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)

Définit la longueur maximale autorisée pour les identificateurs de magasin.

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)

Paramètres

model
IConventionModel

Modèle pour lequel définir le schéma par défaut.

length
Nullable<Int32>

Valeur à définir.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Valeur configurée.

S’applique à

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

Définit la longueur maximale autorisée pour les identificateurs de magasin.

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

Paramètres

model
IMutableModel

Modèle pour lequel définir le schéma par défaut.

length
Nullable<Int32>

Valeur à définir.

S’applique à