用Linq To SQL 搭建底层 接口 底层 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Syst ...
分类:
数据库 时间:
2020-01-28 19:14:21
阅读次数:
63
C# 控制台应用 实现 2048游戏 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace xxxxx.MessageHandling.Config { public ...
分类:
其他好文 时间:
2020-01-23 13:57:48
阅读次数:
74
1 private void button1_Click(object sender, EventArgs e) 2 { 3 DataTable dt1 = new DataTable(); 4 dt1.Columns.Add("ID", typeof(string)); 5 dt1.Columns ...
分类:
其他好文 时间:
2020-01-22 10:58:46
阅读次数:
57
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
作为系列的最后一篇,得要说说C#驱动对mongodb的操作,目前驱动有两种:官方驱动和samus驱动,不过我个人还是喜欢后者,因为提供了丰富的linq操作,相当方便。官方驱动:https://github.com/mongodb/mongo-csharp-driver/downloads。下载后,还 ...
分类:
数据库 时间:
2020-01-20 12:38:46
阅读次数:
88
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
public DataTable ConnMySql(string strRegisterNo) { try { DataTable dt = new DataTable("table"); string constr = IP"server=.;database=DB;uid=sa; pwd=sa ...
分类:
数据库 时间:
2020-01-19 09:53:33
阅读次数:
104
客户有一个需求是把扫描和称重的数据写入到txt文本里面 然后导出显示到界面,最后导出到Excel。 就是这个流程。 从txt导出到datetable中。。。还是直接上代码吧 /// <summary> /// txt导出到datatable /// </summary> /// <param nam ...
目前实现了两种方法,一种根据指定类型筛选IEnumerable的元素,跳过序列中指定数量的元素,返回指定数量的连续元素,最后将取出的元素转换成Array类型存放在DataTable中 DataTable[] dts = new DataTable[number]; for (int i = 0; i ...