- Object obj = callManManager.CreateCriteria()
- .Add(Expression.Ge("CallDate", sDate))
- .Add(Expression.Le("CallDate", sDate1))
- .SetProjection(Projections.Sum("Vnd"))
- .UniqueResult();
- if (obj != null)
- {
- double tongtieng = (double) obj;
- txtTongTien.Text = tongtieng.ToString("");
- }
Chủ Nhật, 13 tháng 11, 2011
Sử dụng SUM trong Nhibernate Criteria API
Một ví dụ đơn giản để SUM cước cuộc gọi trong 1 khoảng thời gian.
Thứ Tư, 9 tháng 11, 2011
SQL 2008 – Change "Edit Top 200 Rows"
go to
Tools
Options
SQL Server Object Explorer, Expand this tree
Choose ‘Commands’
And there you go change it to your desired amount, 0 = everything!
Đăng ký:
Bài đăng (Atom)