setupdeleteshopingtype.cs

来自「一个基本的酒店管理系统」· CS 代码 · 共 29 行

CS
29
字号
using System;
using ConnectDBLibrary;


namespace SetupOperDBLibrary
{
	/// <summary>
	/// SetupDeleteShopingType 的摘要说明。
	/// </summary>
	public class SetupDeleteShopingType
	{
		public bool DeleteShopingType(string tid)
		{
			bool bl=false;
			try
			{
				string cmtxt=string.Format("delete from TypeRoom where tid={0}",tid);
				ConnectAndAccessingDB db=new ConnectAndAccessingDB();
				bl=db.Update(cmtxt);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("SetupDeleteShopingType===",ex);
			}
			return bl;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?