MutablePropertyExtensions.SetMaxLength Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la longueur maximale des données autorisée dans cette propriété. Par exemple, si la propriété est un String ' , il s’agit du nombre maximal de caractères.
public static void SetMaxLength (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? maxLength);
static member SetMaxLength : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetMaxLength (property As IMutableProperty, maxLength As Nullable(Of Integer))
- property
- IMutableProperty
Propriété pour définir la longueur maximale de .
Produit | Versions |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0 |
Commentaires sur Entity Framework
Entity Framework est un projet open source. Sélectionnez un lien pour fournir des commentaires :