上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页
摘要: public void Put(List datas) { try { string tblName = datas[0].beginTime.ToString("yyyy-MM-dd"); MongoCollection table = nu... 阅读全文
posted @ 2017-02-10 17:46 94cool 阅读(2944) 评论(0) 推荐(0)
摘要: MongoCollection tblCount; if (!db.CollectionExists(tblCountName)) { db.CreateCollection(tblCountName); } tblCount = db.GetCollection(tblCoun... 阅读全文
posted @ 2017-02-09 19:58 94cool 阅读(1908) 评论(7) 推荐(0)
摘要: 这是C#泛型类声明的语法class A 表示 A类接受某一种类型,泛型类型为T,需要运行时传入where表明了对类型变量T的约束关系。 where T:new()指明了创建T的实例时应该具有构造函数。一般情况下,无法创建一个泛型类型参数的实例。 new()约束改变了这种情况,要求类型参数必须提供一个无参数的构造函数。 阅读全文
posted @ 2017-02-08 09:19 94cool 阅读(1034) 评论(0) 推荐(0)
摘要: 如果是MySql数据库,则修改为:DapperExtensions.DapperExtensions.SqlDialect = new MySqlDialect(); DapperExtensions默认是MSSql数据库类型的 阅读全文
posted @ 2017-02-06 11:22 94cool 阅读(625) 评论(2) 推荐(0)
摘要: 取得的值:CreationDate:20170122084915 .713600+480 转: var objQuery = new ObjectQuery("select * from Win32_Process WHERE ProcessID = " + process.Id); var moSearcher = new ManagementObjectSearcher(objQ... 阅读全文
posted @ 2017-01-22 09:25 94cool 阅读(502) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Management; using System.Text; using System.Threading; using System.Thread... 阅读全文
posted @ 2017-01-21 10:39 94cool 阅读(2674) 评论(0) 推荐(0)
摘要: /// /// 获得特定进程信息 /// /// 进程名称 public static void GetProcessInfo(string processName) { Process[] processes = Process.GetProcessesByNa... 阅读全文
posted @ 2017-01-19 16:40 94cool 阅读(211) 评论(0) 推荐(0)
摘要: 请开启极速模式 阅读全文
posted @ 2017-01-13 14:13 94cool 阅读(3283) 评论(0) 推荐(0)
摘要: Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合 string sqlstr=”select * from tblname where name like :name”; var paramvalue = string.Format("%{0}%", keyword); object param = new { name= paramvalue }; ... 阅读全文
posted @ 2017-01-07 17:56 94cool 阅读(1057) 评论(0) 推荐(0)
摘要: 在web.config中添加如下的配置试试: 阅读全文
posted @ 2017-01-05 21:40 94cool 阅读(1958) 评论(2) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页