上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 65 下一页
摘要: static void Main() { string baseAddress = "http://localhost:4004/"; /*Render application Application.EnableVisualStyles(); Application.SetCompatibleTe 阅读全文
posted @ 2017-12-01 19:14 94cool 阅读(1053) 评论(1) 推荐(1)
摘要: from:https://www.xcode.me/more/net-csharp-generate-random 随机数生成方法可以说是任何编程语言必备的功能,它的重要性不言而言,在C#中我们通常使用Random类生成随机数,在一些场景下,我却发现Random生成的随机数并不可靠,在下面的例子中我 阅读全文
posted @ 2017-11-30 14:16 94cool 阅读(6969) 评论(1) 推荐(1)
摘要: 表tblCard: {"cNo":"11","oRDate":ISODate("2017-08-01T00:00:00.000+0800")} {"cNo":"12","oRDate":ISODate("2017-07-01T00:00:00.000+0800")} {"cNo":"13","oRD 阅读全文
posted @ 2017-11-23 12:03 94cool 阅读(992) 评论(0) 推荐(0)
摘要: c# 使用MS SqlServer,连接成功,但是还报异常A connection was successfully established with the server, but then an error occurred during the login process. (provider 阅读全文
posted @ 2017-11-16 17:40 94cool 阅读(6373) 评论(0) 推荐(0)
摘要: class Operation { internal Tuple<int, int> FindMinMax(List<int> list) { int maximum = int.MinValue, minimum = int.MaxValue; list.ForEach(n => { minimu 阅读全文
posted @ 2017-10-10 14:40 94cool 阅读(385) 评论(0) 推荐(0)
摘要: using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; /// <summary> /// 导出Excel /// </summar 阅读全文
posted @ 2017-09-15 16:57 94cool 阅读(2133) 评论(0) 推荐(0)
摘要: using Aspose.Cells; void WriteToExcel(string filePath, List<object[]> datas, string sheetName = "Sheet0") { try { Workbook workBook = new Workbook(); 阅读全文
posted @ 2017-09-15 16:54 94cool 阅读(997) 评论(0) 推荐(0)
摘要: 表:tblCard 要更新的字段:tPAFlow 值字段: pFlow 过滤 条件:{"lCycle":2} db.tblCard.find({"lCycle":2}).forEach( function(item){ db.tblCard.update({"_id":item._id},{"$se 阅读全文
posted @ 2017-08-18 17:01 94cool 阅读(7612) 评论(0) 推荐(0)
摘要: 样例数据: { "_id" : "1064621564857", "cNo" : "1064621564857", "exPCodes" : [ { "pType" : NumberInt(1), "cDate" : ISODate("2017-07-27T10:30:11.783+0800") } 阅读全文
posted @ 2017-08-17 14:19 94cool 阅读(1153) 评论(0) 推荐(0)
摘要: #region 索引 //IndexKeysDocument doc = new IndexKeysDocument();//新建索引 //2d 平面坐标索引,适用于基于平面的坐标计算。也支持球面距离计算,不过官方推荐使用2dsphere索引 //BsonValue value = BsonValue.Create("2d");//创建2d索引 //2dsphere 几何球体索引... 阅读全文
posted @ 2017-08-02 11:20 94cool 阅读(509) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 65 下一页