简体   繁体   English

.NET 6 带有实体框架的新 LINQ 功能

[英].NET 6 New LINQ Features with Entity Framework

In .NET 6 there are some nice new LINQ extension methods, eg在 .NET 6 中有一些不错的新 LINQ 扩展方法,例如

var oldest = context.People.MaxBy(p => p.Age);

However, these features do not yet seem to be supported by EF providers (certainly not SQLite or SQLServer, both version 6.0.0).但是,EF 提供程序似乎还不支持这些功能(当然不是 SQLite 或 SQLServer,两者都是 6.0.0 版本)。

Does anyone know when these are planned to be available in these providers?有谁知道这些提供商计划何时提供这些服务?

Currently they are not supported by EF Core (at least by providers shipped by EF Core team) and are investigated by the team for support in 7.0.目前,它们不受 EF Core 支持(至少由 EF Core 团队提供的提供程序)并由团队调查以获取 7.0 中的支持。 See this github issue.请参阅github 问题。

And this issue for other new LINQ features.此问题适用于其他新的 LINQ 功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM