Lingua

RelationalAnnotationProvider.CreateJsonIndex(IIndex, ITableIndex) Metodo

Definizione

Compila un RelationalJsonIndex oggetto per l'indice JSON mappato specificato.

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

Parametri

modelIndex
IIndex

Indice JSON mappato.

tableIndex
ITableIndex

Indice di tabella mappato annotato.

Valori restituiti

Oggetto RelationalJsonIndex che descrive i percorsi JSON.

Commenti

I provider possono eseguire l'override di questa opzione per personalizzare la risoluzione degli elementi dell'indice JSON. L'implementazione di base gestisce gli indici le cui foglie sono proprietà scalari all'interno di tipi complessi con mapping JSON o proprietà complesse non raccolte il cui tipo è mappato a JSON. Quando si esegue l'override, usare FindJsonElement(IPropertyBase, ITable) per risolvere l'elemento JSON per una singola proprietà nella tabella dell'indice.

Si applica a