linq 的问题

blueteeth_yl 2010-09-09 09:40:51
客户那边给的数据库是动态链接库获取的 --他返回一个datatable,我程序的时候,将datatable放在Ilist里面

现在对Ilist 做linq查询


public class LedTaskAll
{
public string pickno
{
get;
set;
}
public string pksectntype
{
get;
set;
}
public int taskcount
{
get;
set;
}
public int finish
{
get;
set;
}
public int notfinish
{
get;
set;
}
public float progress
{
get;
set;
}

}



ILIST的实体类如上

做一个如下的查询

select sum (taskcount), float型的progerss转为 字符型 from Ilist where pksectntype ==‘ ALL’

给个 linq 语句。谢谢
...全文
70 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
bluedoctor 2010-09-09
  • 打赏
  • 举报
回复
推荐一个跟LINQ类似的ORM工具语言OQL,
http://blog.csdn.net/bluedoctor/archive/2010/01/24/5251913.aspx

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧