noteswiki

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2016年10月30日

摘要: var query = (from x in a.AsEnumerable() join y in b.AsEnumerable() on x.Field("col1") equals y.Field("col1") select new { col1= y.Field("col1"), col2=x.Field("col2") }).To... 阅读全文
posted @ 2016-10-30 22:03 noteswiki 阅读(465) 评论(0) 推荐(0) 编辑

摘要: DateTime ConvertDate = DateTime.ParseExact("20140504", "yyyyMMdd", null, System.Globalization.DateTimeStyles.AllowWhiteSpaces).ToString("yyyy-MM-dd"); DateTime.ParseExact("18/05/2014", "dd/MM/yyyy"... 阅读全文
posted @ 2016-10-30 21:58 noteswiki 阅读(959) 评论(0) 推荐(0) 编辑

摘要: class A { public int id { get; set; } public string name { get; set; } } class B { public int id { get; set; } public int age { ge... 阅读全文
posted @ 2016-10-30 21:56 noteswiki 阅读(1778) 评论(0) 推荐(0) 编辑

摘要: private static void DataTableToSQLServer( DataTable dt) { string connectionString = GetConnectionString(); using (SqlConnection destinationConnection =new Sql... 阅读全文
posted @ 2016-10-30 21:50 noteswiki 阅读(135) 评论(0) 推荐(0) 编辑

摘要: SqlBulkcopy Loop Insert 阅读全文
posted @ 2016-10-30 17:04 noteswiki 阅读(824) 评论(0) 推荐(0) 编辑

摘要: or File.ReadLines would read the file line by line. .Select(r => r.TrimEnd('#')) would remove the # from end of the line .Select(line => line.Split(', 阅读全文
posted @ 2016-10-30 15:09 noteswiki 阅读(2852) 评论(0) 推荐(0) 编辑