摘要:
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
阅读(481)
评论(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
阅读(131)
评论(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
阅读(306)
评论(0)
推荐(0)
摘要:
//创建一个类,此类有两个方法 using Newtonsoft.Json;namespace System{ public static class JsonExtension { /// <summary> /// 把对象转换为JSON字符串 /// </summary> /// <param 阅读全文
posted @ 2016-12-05 16:26
CH|heyi
阅读(19546)
评论(1)
推荐(1)
摘要:
//定义一个集合 var list = new List<Dictionary<string, string>>();//这里的Type为字典类型 //假设list已经有数据存进去,根据字典的某个列名升序或降序 var orderInfo = list.OrderByDescending(a => 阅读全文
posted @ 2016-12-05 16:05
CH|heyi
阅读(16393)
评论(3)
推荐(1)