/// <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 <EtProjectInfo> GetPageProjectInfosWithDynamicCondition(string DataTbleName, string ReturnFields, string SqlWhere, int pageIndex, string Sort, int pageSize, out Int32 AllRecords) { return(DALProjectInfo.GetPageProjectInfos(DataTbleName, ReturnFields, SqlWhere, pageIndex, Sort, pageSize, out AllRecords)); }
/// <summary> /// 获取记录条数 /// </summary> /// <returns></returns> public static int GetRowCountOfAllProjectInfos() { return(DALProjectInfo.GetRowCountOfAllProjectInfos()); }
/// <summary> /// 根据条件获取所有对象 /// </summary> /// <returns></returns> public static IList <EtProjectInfo> GetAllProjectInfosWithDynamicCondition(string where) { return(DALProjectInfo.GetAllProjectInfosWithDynamicCondition(where)); }
/// <summary> /// 获取所有对象 /// </summary> /// <returns></returns> public static IList <EtProjectInfo> GetAllProjectInfos() { return(DALProjectInfo.GetAllProjectInfos()); }
/// <summary> /// 修改主键值一致的记录,并返回受影响行数 /// </summary> /// <param name="entityPdt">数据库相对应的对象实例</param> public static int Modify(EtProjectInfo etProjectInfo) { return(DALProjectInfo.Modify(etProjectInfo)); }
/// <summary> /// 删除指定主键值的记录,并返回受影响行数 /// </summary> /// <param name="iD">数据库中的唯一ID号''</param> public static int DeleteByEDSID(int eDSID) { return(DALProjectInfo.DeleteByEDSID(eDSID)); }
/// <summary> /// 添加一个对象,返回新对象ID号 /// </summary> /// <param name="entityPdt"></param> /// <returns></returns> public static Int32 Add(EtProjectInfo etProjectInfo) { return(DALProjectInfo.Add(etProjectInfo)); }