public IList <T> Search <T>(string tableName, string where, string orderby = "") where T : Kingsun.DB.Action, new() { IDBManage dbManage = DBFactory.CreateDBManage(AppSetting.ConnectionString); if (string.IsNullOrEmpty(orderby)) { IList <T> list = dbManage.Search <T>(tableName, where, orderby); _operatorError = dbManage.ErrorMsg == null ? "" : dbManage.ErrorMsg; return(list); } else { IList <T> list = dbManage.Search <T>(tableName, where, orderby); _operatorError = dbManage.ErrorMsg == null ? "" : dbManage.ErrorMsg; return(list); } }
/// <summary> /// 查询所有 /// </summary> /// <returns></returns> public IList <T> SelectAll <T>() where T : Kingsun.DB.Action, new() { IDBManage dbManage = DBFactory.CreateDBManage(AppSetting.ConnectionString); IList <T> list = dbManage.Search <T>("1=1"); _operatorError = dbManage.ErrorMsg == null ? "" : dbManage.ErrorMsg; return(list); }