语言

RelationalAnnotationProvider.CreateJsonIndex(IIndex, ITableIndex) 方法

定义

为给定的映射 JSON 索引生成 a RelationalJsonIndex 。

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

参数

modelIndex
IIndex

映射的 JSON 索引。

tableIndex
ITableIndex

要批注的映射表索引。

返回

RelationalJsonIndex描述 JSON 路径。

注解

提供程序可以重写此值以自定义 JSON 索引元素解析。 基实现处理其叶子是 JSON 映射复杂类型内的标量属性,或者其类型为 JSON 映射的非集合复杂属性。 重写时,用于 FindJsonElement(IPropertyBase, ITable) 解析索引表上单个属性的 JSON 元素。

适用于