上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页
摘要: from:https://yq.aliyun.com/articles/8461?spm=5176.7937264.222114.10.s2oqcT 摘要: MongoDB复制集(Replica Set)通过存储多份数据副本来保证数据的高可靠,通过自动的主备切换机制来保证服务的高可用。**但需要注意的时,连接副本集的姿势如果不对,服务高可用将不复存在。** 使用复制集时你需要知道的 Mon... 阅读全文
posted @ 2017-02-15 15:44 94cool 阅读(635) 评论(0) 推荐(0)
摘要: public async Task CollectionExistsAsync(string collectionName) { var filter = new BsonDocument("name", collectionName); //filter by collection name var collections = await ... 阅读全文
posted @ 2017-02-15 15:21 94cool 阅读(1052) 评论(0) 推荐(0)
摘要: 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 阅读(2962) 评论(0) 推荐(0)
摘要: MongoCollection tblCount; if (!db.CollectionExists(tblCountName)) { db.CreateCollection(tblCountName); } tblCount = db.GetCollection(tblCoun... 阅读全文
posted @ 2017-02-09 19:58 94cool 阅读(1934) 评论(7) 推荐(0)
摘要: 这是C#泛型类声明的语法class A 表示 A类接受某一种类型,泛型类型为T,需要运行时传入where表明了对类型变量T的约束关系。 where T:new()指明了创建T的实例时应该具有构造函数。一般情况下,无法创建一个泛型类型参数的实例。 new()约束改变了这种情况,要求类型参数必须提供一个无参数的构造函数。 阅读全文
posted @ 2017-02-08 09:19 94cool 阅读(1068) 评论(0) 推荐(0)
摘要: 如果是MySql数据库,则修改为:DapperExtensions.DapperExtensions.SqlDialect = new MySqlDialect(); DapperExtensions默认是MSSql数据库类型的 阅读全文
posted @ 2017-02-06 11:22 94cool 阅读(646) 评论(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 阅读(524) 评论(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 阅读(2705) 评论(0) 推荐(0)
摘要: /// /// 获得特定进程信息 /// /// 进程名称 public static void GetProcessInfo(string processName) { Process[] processes = Process.GetProcessesByNa... 阅读全文
posted @ 2017-01-19 16:40 94cool 阅读(228) 评论(0) 推荐(0)
摘要: 请开启极速模式 阅读全文
posted @ 2017-01-13 14:13 94cool 阅读(3311) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页