📄 roomtypebll.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using System.Data;
using Model;
namespace BLL
{
public class RoomTypeBLL
{
RoomTypeDAO roomtypedao=new RoomTypeDAO();
/// <summary>
/// 查询房间类型表所有
/// </summary>
/// <returns></returns>
public DataSet Bindselect()
{
return roomtypedao.Bindselect();
}
/// <summary>
/// 根据ID删除信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public int delete(int id)
{
return roomtypedao.delete(id);
}
/// <summary>
/// 根据ID查询信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataSet selectwhereid(int id)
{
return roomtypedao.selectwhereid(id);
}
/// <summary>
/// 修改
/// </summary>
/// <param name="room"></param>
/// <returns></returns>
public int update(RoomTypeEntity room)
{
return roomtypedao.update(room);
}
/// <summary>
/// 插入客房类型信息
/// </summary>
/// <param name="room"></param>
/// <returns></returns>
public int insert(RoomTypeEntity room)
{
return roomtypedao.insert(room);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -