码迷,mamicode.com
首页 >  
搜索关键字:dataset ;datatable;    ( 4013个结果
C#将datatable数据转换成JSON数据的方法
json数据类型格式:[{id:"1",code:"1",description:"博士"},{id:"2",code:"2",description:"硕士"},{id:"3",code:"3",description:"学士"}]//参考代码 public string DataTable...
分类:Web程序   时间:2014-06-04 19:05:38    阅读次数:237
小功能集锦
1. 导出功能 public static void OutExcel(DataTable dt) { GridView gv1 = new GridView(); gv1.DataSource = dt; gv1...
分类:其他好文   时间:2014-06-03 09:46:45    阅读次数:196
扩展方法(DateTableToList)
public static IList ToList(this DataTable dt) where T : class,new() { var prlist = new List(); var t = typeof(T); ...
分类:其他好文   时间:2014-05-30 08:05:30    阅读次数:229
C# 递归
调用: BLL.Area bll = new BLL.Area();//实例化BLL对象 DataTable dt = null; private void FormArea_Load(object sender, EventArgs e) {...
分类:其他好文   时间:2014-05-30 01:52:28    阅读次数:249
DataSet 互相转换 List
/// /// List DataSet /// public class IListDataSet { /// /// 集合装换DataSet /// /// 集合 /// ...
分类:其他好文   时间:2014-05-30 00:21:00    阅读次数:203
Weka数据挖掘平台
Explorer:menu selection and form filling缺点:when you open a dataset, it immediately loads it all in. This means that the Explorer can only be applied t...
分类:其他好文   时间:2014-05-29 21:03:09    阅读次数:385
如何为DATATABLE添加多行(转贴)
DataColumn 是用来模拟物理数据库中的列。DataColumn 的组合组成了DataTable中列的架构。生成 DataTable 架构的方法就是向DataColumnCollection中添加DataColumn对象来生成架构。同物理数据库一样,列是有类型的,比如 varchar, da....
分类:其他好文   时间:2014-05-29 12:00:29    阅读次数:224
C#模糊查询绑定datagridview
private CollectionViewSource wgdData = new CollectionViewSource(); private DataTable Ds_wgd { get { return this.dgv_wgd.ItemsSource ...
分类:Windows程序   时间:2014-05-29 11:05:47    阅读次数:312
datatable 使用LAMBDA表达查询,过滤
DataTable dt = new DataTable(); DataColumn dc = new DataColumn("UserName", System.Type.GetType("System.String")); DataColum...
分类:其他好文   时间:2014-05-28 13:46:12    阅读次数:373
MySQL数据迁移到MSSQL-以小米数据库为例-测试828W最快可达到2分11秒
读取MySQL数据库的方法很简单:MySqlDataAdapter.Fill(DataTable dataTable)方法填充数据。写入MSSQL数据库的方法也很简单:SqlBulkCopy.WriteToServer(DataTable dataTable)方法批量插入数据。经过多次测试,程序上的...
分类:移动开发   时间:2014-05-28 09:03:49    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!