public static int Update(string tablename, string setstr, string where) { int result = new DAL.CommonData <T>().Update(tablename, setstr, where); return(result); }
/// <summary> /// 向表插入一行数据 /// </summary> /// <param name="t"></param> /// <param name="returnType"></param> /// <returns></returns> public static int Insert(T t, ReturnTypes returnType) { var rel = new DAL.CommonData <T>().Insert(t, returnType); return(rel); }
/// <summary> /// 根据主键判断是否存在记录 /// </summary> /// <param name="where"></param> /// <returns></returns> public static bool IsExist(string where) { bool result = new DAL.CommonData <T>().IsExist(where); return(result); }
public static DataTable GetPager(string WhereClause, string OrderBy, int PageIndex, int PageSize, ref int TotalRows, string StoredProcedure) { var list = new DAL.CommonData <T>().GetPager(WhereClause, OrderBy, PageIndex, PageSize, ref TotalRows, StoredProcedure); return(list); }
public static DataTable GetPager(int pagesize, int currentpage, string where, string orderby, string columns, ref int record) { var list = new DAL.CommonData <T>().GetPager(pagesize, currentpage, where, orderby, columns, ref record); return(list); }
public static DataTable GetTable(string sqlText) { var list = new DAL.CommonData <T>().GetTable(sqlText); return(list); }