var query =from a in this.ObjectContext.siteInfo 
       join b in this.ObjectContext.shopInfo on a.siteID equals b.siteID 
       group new {a,b} by new { a.Lon, a.Lat, a.siteID, b.date} into g 
       select new site_shopInfo{
         SiteID=g.Key.siteID,
         Longitude=g.Key.Lon, 
         Latitude=g.Key.Lat, 
         date=g.Key.date, 
         Totalearning=g.Sum(t => t.b.earning)};

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-12-09
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2021-10-01
  • 2021-07-24
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案