1. Compiled Query

Func<OfflineDataContext, int> getNewsCount =
                    CompiledQuery.Compile((OfflineDataContext newsDB1) =>
                        (from News p in newsDB1.StoredNewsList
                         where p.CId == cid
                         select p).Count());

int storedCurCount = getNewsCount(newsDB);

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-05-03
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-01-31
  • 2021-04-12
  • 2022-01-28
相关资源
相似解决方案