Lenguaje

RelationalAnnotationProvider.CreateJsonIndex(IIndex, ITableIndex) Method

Definition

Builds a RelationalJsonIndex for the given mapped JSON index.

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

Parameters

modelIndex
IIndex

The mapped JSON index.

tableIndex
ITableIndex

The mapped table index being annotated.

Returns

The RelationalJsonIndex describing the JSON paths.

Remarks

Providers can override this to customize JSON index element resolution. The base implementation handles indexes whose leaves are either scalar properties inside JSON-mapped complex types, or non-collection complex properties whose type is itself JSON-mapped. When overriding, use FindJsonElement(IPropertyBase, ITable) to resolve the JSON element for an individual property on the index's table.

Applies to