客户那边给的数据库是动态链接库获取的 --他返回一个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 语句。谢谢
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 语句。谢谢
解决方案 »
- Lambda表达式中如何处理闭包?
- dll的问题
- 获取方法名
- 怎么向changepassword登录控件中的按钮添加背景图?急急急急急急急急急急急急急急急急急急急急急急~~~~~
- 水晶报表为什么PrintMode改为Activex后不能打印?
- c#的一个登陆问题
- 有没有人知道DevExpress中的控件GridControl中有没有类似于DataGrid的属性CurrenRowIndex的属性呀?
- 技术研究!!!
- C#环境下的web开发中如何往脚本代码中存放变量?急呀....
- 如何在C#获得mpeg视频媒体的播放时间?急!!!!!!
- Array.Copy(Array,Array,Int32)
- 关于在C#程序中解析自定义表达式(字符串)
http://blog.csdn.net/bluedoctor/archive/2010/01/24/5251913.aspx