일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 태그를 입력해 주세요.
- windows
- 단축키
- MS
- 윈폼
- 프로시저
- jQuery
- Winform
- ASP
- 엑셀
- 이클립스
- DataGrid
- MSSQL
- aspnet
- 오라클
- IIS
- oracle
- 비주얼스튜디오
- 마이크로소프트
- attr()
- SSRS
- microsoft
- CONVERT()
- Excel
- 윈도우
- 리포팅서비스
- javascript
- 자바스크립트
- c#
- replace()
Archives
- Today
- Total
DJ메탈짱™의 Free Style
[C#] LINQ to SQL(Sum)
// 2011/07/13 - LINQ query (SUM)var tSum =from p in db.TBSimulation // from절ywhere p.USERID == this.hdUSERID.Text && p.GROUPID == "A" // where절yselect p.RESULT; // select절y // Total Profit this.lblTPROFIT.Text = tSum.Sum().ToString();
일(job)/MS(Microsoft)
2015. 12. 8. 12:20
[ASP.NET] LINQ to SQL(group by, sum)
// LINQ query (SUM) var tSum = from p in db.TBSimulation // from절 where p.USERID == "" // where절 group p by new { p.GROUPID,p.USERID } into grouping // group by select new // sum column { grouping.Key, Totalprice = grouping.Sum(p => p.RESULT) }; // sum값 바인딩 foreach (var grp in tSum) { this.lblTPROFIT.Text = grp.Totalprice.ToString(); }
일(job)/MS(Microsoft)
2015. 12. 4. 12:49