JsonQueryExpression.GetJsonElement(IPropertyBase) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
IRelationalJsonElement通过匹配JsonColumn的基础来查找此表达式引用的 JSON 列中给定属性/导航/复杂属性。ColumnContainingColumn 这区分了实体拆分、TPT 和 TPC 方案,其中同一属性具有多个 JSON 元素映射,每个具体表有一个。
PropertyName 可能 null 适用于没有 JSON 表示形式的影子键;调用方循环访问 GetProperties() 必须处理该大小写并跳过它们。
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement GetJsonElement(Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
abstract member GetJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
override this.GetJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
Public Overridable Function GetJsonElement (propertyBase As IPropertyBase) As IRelationalJsonElement
参数
- propertyBase
- IPropertyBase
要查找的属性、导航或复杂属性。
返回
的 propertyBaseJSON 元素映射 。