ConventionModelExtensions.AddIgnored(IConventionModel, Type, Boolean) Méthode
Définition
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.
Marque le type d’entité donné comme ignoré.
public static void AddIgnored(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType, bool fromDataAnnotation = false);
public static string AddIgnored(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type, bool fromDataAnnotation = false);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> string
<Extension()>
Public Sub AddIgnored (model As IConventionModel, clrType As Type, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function AddIgnored (model As IConventionModel, type As Type, Optional fromDataAnnotation As Boolean = false) As String
Paramètres
- model
- IConventionModel
Modèle auquel ajouter le type ignoré.
- clrTypetype
- Type
Type d’entité à ignorer.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
Nom du type d’entité ignoré.