上一页 1 ··· 4 5 6 7 8
摘要: 1 //分组 2 var ll= lst.GroupBy(x => new { x.Id, x.Name }).Select(x => new 3 { 4 Key = x.Key, 5 Id = x.First().Id, 6 Name = x.First().Na... 阅读全文
posted @ 2017-10-26 10:29 杜子烟 阅读(631) 评论(0) 推荐(0) 编辑
摘要: C:\Windows\System32>xsd.exe c:/Createst.xsd -c C:\Windows\System32>xsd.exe c:/Creauest.xsd /c /Language:C# /outputdir:d:\ 生成的cs带命名空间:C:\Windows\System 阅读全文
posted @ 2017-10-16 11:00 杜子烟 阅读(355) 评论(0) 推荐(0) 编辑
摘要: row_number()over(partition by Id,Code order by setTime desc) 阅读全文
posted @ 2017-08-21 14:46 杜子烟 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1.与Date.Parse()方法的区别:Date.Parse(object o)方法接受一个object类型的参数,当参数为空或转换失败时会抛出异常DateTime.TryParse方法不会抛出异常 2.用法介绍方法定义 : DateTime.TryParse(string strTime,out 阅读全文
posted @ 2017-08-15 14:09 杜子烟 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: /// /// 从URL获取值(字符串) /// public static string GetValueFromUrl(string key) { string keyvalue = HttpContext.Current.Request.QueryString[key]; i... 阅读全文
posted @ 2017-06-09 22:36 杜子烟 阅读(551) 评论(0) 推荐(0) 编辑
摘要: /// /// MD5 32位加密(大写) /// /// /// static string UserMd5(string str) { string cl = str; string pwd = ""; MD5 md5... 阅读全文
posted @ 2017-06-09 22:19 杜子烟 阅读(1724) 评论(0) 推荐(1) 编辑
摘要: static void Main(string[] args) { #region 定时器 TimerDemo td = new TimerDemo("TimerDemo", 1000); td.Enabled = true; td.TickEvent += TestHandler;... 阅读全文
posted @ 2017-06-09 21:58 杜子烟 阅读(556) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8