/// <summary> /// 使用存储过程分页返回记录对象集 /// </summary> /// <param name="DataTbleName">输出表名称</param> /// <param name="ReturnFields">返回的字段,多个时,有逗号隔开</param> /// <param name="Where">条件语句,可以为空,表示不使用条件</param> /// <param name="pageIndex">当前页</param> /// <param name="Sort">排序字段,可以为空,使用默认</param> /// <param name="pageSize">每页的行数</param> /// <param name="AllRecords">满足条件的记录数</param> /// <returns></returns> public static IList <EtCellInfo> GetPageCellInfosWithDynamicCondition(string DataTbleName, string ReturnFields, string SqlWhere, int pageIndex, string Sort, int pageSize, out Int32 AllRecords) { return(DALCellInfo.GetPageCellInfos(DataTbleName, ReturnFields, SqlWhere, pageIndex, Sort, pageSize, out AllRecords)); }
/// <summary> /// 获取记录条数 /// </summary> /// <returns></returns> public static int GetRowCountOfAllCellInfos() { return(DALCellInfo.GetRowCountOfAllCellInfos()); }
/// <summary> /// 根据条件获取所有对象 /// </summary> /// <returns></returns> public static IList <EtCellInfo> GetAllCellInfosWithDynamicCondition(string where) { return(DALCellInfo.GetAllCellInfosWithDynamicCondition(where)); }
/// <summary> /// 获取所有对象 /// </summary> /// <returns></returns> public static IList <EtCellInfo> GetAllCellInfos() { return(DALCellInfo.GetAllCellInfos()); }
/// <summary> /// 修改主键值一致的记录,并返回受影响行数 /// </summary> /// <param name="entityPdt">数据库相对应的对象实例</param> public static int Modify(EtCellInfo etCellInfo) { return(DALCellInfo.Modify(etCellInfo)); }
/// <summary> /// 删除指定主键值的记录,并返回受影响行数 /// </summary> /// <param name="iD">数据库中的唯一ID号''</param> public static int DeleteByCELLID(int cELLID) { return(DALCellInfo.DeleteByCELLID(cELLID)); }
/// <summary> /// 添加一个对象,返回新对象ID号 /// </summary> /// <param name="entityPdt"></param> /// <returns></returns> public static Int32 Add(EtCellInfo etCellInfo) { return(DALCellInfo.Add(etCellInfo)); }