SetupOperDBLibrary/SetupAddRoomtype.cs

(完整代码) 686B

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);
			}
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。