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