📄 setupaddroomtype.cs
字号:
using System;
using ConnectDBLibrary;
namespace SetupOperDBLibrary
{
/// <summary>
/// SetupAddRoomtype 的摘要说明。
/// </summary>
public class SetupAddRoomtype
{
public bool AddRoomtype(string type,string priceday,string pricehour,string istimeroom,string setNum)
{
try
{
string cmtxt=string.Format("insert into typeroom (ttype,pricebyday,pricebyhour,istimeroom,setnum)values('{0}',{1},{2},{3},{4})",type,priceday,pricehour,istimeroom,setNum);
ConnectAndAccessingDB db=new ConnectAndAccessingDB();
return db.Update(cmtxt);
}
catch(Exception ex)
{
throw new ApplicationException("SetupAddRoomtype==",ex);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -