Exemple #1
0
        public static IList <T> GetModels(string sql, T t)
        {
            var task = Task.Factory.StartNew(() => {
                DBUtilManager <T> dbUtilManager = new DBUtilManager <T>();
                return(dbUtilManager.GetModels(sql, t));
            });

            return(task.Result);
        }
Exemple #2
0
        public static int Update(string sql, T t)
        {
            var task = Task.Factory.StartNew(() => {
                DBUtilManager <T> dbUtilManager = new DBUtilManager <T>();
                return(dbUtilManager.Update(sql, t));
            });

            return(task.Result);
        }