DAL/RoomDAO.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using Model;
using System.Data;
namespace DAL
{
public class RoomDAO
{
SQLHelper sqlhelper = new SQLHelper();
private DataSet ds;
//得到房间信息
public DataSet GetRoomInfoByTypeid(int typeid)
{
try
{
ds = sqlhelper.GetDataSet("select * from room where roomstate=0 and typeid="+typeid);
return ds;
}
catch (Exception)
{
throw;
}
}
//查询房间信息总记录数
public int GetAllRoomCount()
{
try
{
int count = sqlhelper.ReturnSQL("select count(*) from room");
return count;
}
catch (Exception)
{
throw;
}
}
//得到房间信息 分页显示
public DataSet GetRoomInfoPaging(int start,int limit)
{
try
{
ds = sqlhelper.GetDataSet("select top " + limit + " * from room where roomid not in(select top " + start + " roomid from room order by roomstate asc) order by roomstate asc");
return ds;
}
catch (Exception)
{
throw;
}
}
//得到房间信息不判断状态
public RoomBean getRoonInfosNoState(int roomid)
后面还有 84 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
