예제 #1
0
 /// <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 <EtBaseStation> GetPageBaseStationsWithDynamicCondition(string DataTbleName, string ReturnFields, string SqlWhere, int pageIndex, string Sort, int pageSize, out Int32 AllRecords)
 {
     return(DALBaseStation.GetPageBaseStations(DataTbleName, ReturnFields, SqlWhere, pageIndex, Sort, pageSize, out AllRecords));
 }
예제 #2
0
 /// <summary>
 /// 获取记录条数
 /// </summary>
 /// <returns></returns>
 public static int GetRowCountOfAllBaseStations()
 {
     return(DALBaseStation.GetRowCountOfAllBaseStations());
 }
예제 #3
0
 /// <summary>
 /// 根据条件获取所有对象
 /// </summary>
 /// <returns></returns>
 public static IList <EtBaseStation> GetAllBaseStationsWithDynamicCondition(string where)
 {
     return(DALBaseStation.GetAllBaseStationsWithDynamicCondition(where));
 }
예제 #4
0
 /// <summary>
 /// 获取所有对象
 /// </summary>
 /// <returns></returns>
 public static IList <EtBaseStation> GetAllBaseStations()
 {
     return(DALBaseStation.GetAllBaseStations());
 }
예제 #5
0
 /// <summary>
 /// 修改主键值一致的记录,并返回受影响行数
 /// </summary>
 /// <param name="entityPdt">数据库相对应的对象实例</param>
 public static int Modify(EtBaseStation etBaseStation)
 {
     return(DALBaseStation.Modify(etBaseStation));
 }
예제 #6
0
 /// <summary>
 /// 删除指定主键值的记录,并返回受影响行数
 /// </summary>
 /// <param name="iD">数据库中的唯一ID号''</param>
 public static int DeleteByStationID(int stationID)
 {
     return(DALBaseStation.DeleteByStationID(stationID));
 }
예제 #7
0
 /// <summary>
 /// 添加一个对象,返回新对象ID号
 /// </summary>
 /// <param name="entityPdt"></param>
 /// <returns></returns>
 public static Int32 Add(EtBaseStation etBaseStation)
 {
     return(DALBaseStation.Add(etBaseStation));
 }