MutableModelExtensions.AddIgnored(IMutableModel, Type) 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é, empêchant les conventions d’ajouter un type d’entité correspondant au modèle.
public static void AddIgnored(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static string AddIgnored(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> string
<Extension()>
Public Sub AddIgnored (model As IMutableModel, clrType As Type)
<Extension()>
Public Function AddIgnored (model As IMutableModel, type As Type) As String
Paramètres
- model
- IMutableModel
Modèle auquel ajouter le type ignoré.
- clrTypetype
- Type
Type d’entité à ignorer.
Retours
Nom du type ignoré.