文章分类 -  C#

object
摘要:public List<Brand> GetBrandsByManufacturerName(string manufacturerName){ var listBrand = new List<Brand>(); var cmdText = string.Format($"[GCP.Runtime 阅读全文
posted @ 2016-12-05 16:50 CH|heyi 阅读(469) 评论(0) 推荐(0) 编辑
摘要:using System;using System.ComponentModel;using System.Data;using System.Data.SqlClient;namespace ICCS{ public static class DataAccessExtension { /// < 阅读全文
posted @ 2016-12-05 16:40 CH|heyi 阅读(126) 评论(0) 推荐(0) 编辑
摘要:protected List<string> GetAllFields(SqlDataReader reader){ var listFields = new List<string>(); for (int i = 0; i < reader.FieldCount; i++) { listFiel 阅读全文
posted @ 2016-12-05 16:36 CH|heyi 阅读(298) 评论(0) 推荐(0) 编辑
摘要://定义一个集合 var list = new List<Dictionary<string, string>>();//这里的Type为字典类型 //假设list已经有数据存进去,根据字典的某个列名升序或降序 var orderInfo = list.OrderByDescending(a => 阅读全文
posted @ 2016-12-05 16:05 CH|heyi 阅读(16388) 评论(3) 推荐(1) 编辑

点击右上角即可分享
微信分享提示