RelationalAnnotationProvider.CreateJsonIndex(IIndex, ITableIndex) 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.
Génère un RelationalJsonIndex index JSON mappé donné.
protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalJsonIndex CreateJsonIndex(Microsoft.EntityFrameworkCore.Metadata.IIndex modelIndex, Microsoft.EntityFrameworkCore.Metadata.ITableIndex tableIndex);
abstract member CreateJsonIndex : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> Microsoft.EntityFrameworkCore.Metadata.RelationalJsonIndex
override this.CreateJsonIndex : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> Microsoft.EntityFrameworkCore.Metadata.RelationalJsonIndex
Protected Overridable Function CreateJsonIndex (modelIndex As IIndex, tableIndex As ITableIndex) As RelationalJsonIndex
Paramètres
- modelIndex
- IIndex
Index JSON mappé.
- tableIndex
- ITableIndex
Index de table mappé en cours d’annotation.
Retours
RelationalJsonIndex Description des chemins JSON.
Remarques
Les fournisseurs peuvent remplacer cela pour personnaliser la résolution d’élément d’index JSON. L’implémentation de base gère les index dont les feuilles sont des propriétés scalaires à l’intérieur de types complexes mappés JSON, ou des propriétés complexes non-collection dont le type est lui-même mappé JSON. En cas de substitution, utilisez cette option FindJsonElement(IPropertyBase, ITable) pour résoudre l’élément JSON d’une propriété individuelle sur la table de l’index.