Allow providers to overwrite structural type scalar property order

未关闭
#38,619 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
csharp
领域
backend, databases

调研方向

首先跟踪 Core 的 PropertyNameComparer 和结构类型标量属性的排序,然后比较 Cosmos DB provider 当前如何处理 discriminator 的放置。完成的标准是:providers 有一种明确的方式,可以为结构类型实例覆盖标量属性顺序,同时不破坏现有的排序行为。

由索引模型根据 Issue 内容生成。

描述

area-model-building consider-for-next-release customer-reported
What problem are you trying to solve?

Structural type scalar property order is determined internally by Core using PropertyNameComparer, and can't be overwritten by providers. However a different order might be warrented in some cases. For example: JSON entities that support inheritance hierarchies might want to put the discriminator as the first property for faster materialization. This is currently the case for the Cosmos DB provider.

Describe the solution you'd like

Some way to overwrite scalar property order for structural type instances

主要语言
C#
星标
14.8k
派生
3.4k
平均合并
3 天 18 小时
30 天内合并 PR
159

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/efcore 的其他 Issue

查看 dotnet/efcore 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。