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); }
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); }