摘要:
public List<Brand> GetBrandsByManufacturerName(string manufacturerName){ var listBrand = new List<Brand>(); var cmdText = string.Format($"[GCP.Runtime 阅读全文
摘要:
using System;using System.ComponentModel;using System.Data;using System.Data.SqlClient;namespace ICCS{ public static class DataAccessExtension { /// < 阅读全文
摘要:
protected List<string> GetAllFields(SqlDataReader reader){ var listFields = new List<string>(); for (int i = 0; i < reader.FieldCount; i++) { listFiel 阅读全文
摘要:
//创建一个类,此类有两个方法 using Newtonsoft.Json;namespace System{ public static class JsonExtension { /// <summary> /// 把对象转换为JSON字符串 /// </summary> /// <param 阅读全文
摘要:
//定义一个集合 var list = new List<Dictionary<string, string>>();//这里的Type为字典类型 //假设list已经有数据存进去,根据字典的某个列名升序或降序 var orderInfo = list.OrderByDescending(a => 阅读全文