gpt4 book ai didi

c# - Linq 到实体 "does not recognize the method ... method, and this method cannot be translated into a store expression."

转载 作者:太空狗 更新时间:2023-10-30 02:00:41 30 4
gpt4 key购买 nike

<分区>

我有一个问题。我在 Visual Studio 中创建了一个数据实体模型。在 Linq 中;

Guid RtuDataId = db.RtuData.Where(x => x.CommunicationUnit.Id == new Guid(ID))
.OrderByDescending(x => x.ReadOn)
.LastOrDefault().Id;

我收到错误;

does not recognize the method ... method, and this method cannot be translated into a store expression.

我在 Google 中搜索过,但我不明白这个错误。

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com