The specified LINQ expression contains references to queries that are associated with different cont。

解决方法:

查询源的最后添加.ToList();

一定是哪里转换成了IEnumerable或其他东东了ToList 就好了!

相关文章:

  • 2021-07-17
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-08-24
  • 2021-06-19
相关资源
相似解决方案