摘要: public static void BulkInsert<T>(string connection, string tableName, IList<T> list){using (var bulkCopy = new SqlBulkCopy(connection)){bulkCopy.BatchSize = list.Count;bulkCopy.DestinationTableName = tableName;var table = new DataTable();var props = TypeDescriptor.GetProperties(typeof(T) 阅读全文
posted @ 2012-09-05 23:18 RyanCheng 阅读(257) 评论(0) 推荐(0) 编辑