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