摘要: //显示 public DataTable ExecTable(string sql) { DataSet set = new DataSet(); using (SqlConnection conn = new SqlConnection(con)) { conn.Open(); using (S 阅读全文
posted @ 2020-06-30 20:32 牛头梗国王 阅读(189) 评论(0) 推荐(0)
摘要: #region 动态查询的方式使用泛型+反射 //sql语句 select *from student public static List<T> Query(string where) { DataTable tb = new DataTable(); List<T> list = new Lis 阅读全文
posted @ 2020-06-30 20:28 牛头梗国王 阅读(184) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { //1. double totalAmount = 100; int num = 10; double minAmount = 0.01; RedisClient client = new RedisClient("127.0.0. 阅读全文
posted @ 2020-06-30 20:25 牛头梗国王 阅读(127) 评论(0) 推荐(0)