62,163
社区成员
发帖
与我相关
我的任务
分享
public static bool DeleteKeFangType(Hotel hotel)
{
using(DataBase db = new DataBase())
{
SqlCommand com = new SqlCommand();
com.Connection = db.Connection;
com.CommandType = CommandType.StoredProcedure;
com.CommandText = "dbo.hs_DeleteKeFangType";
com.Parameters.Add("@ktId", SqlDbType.Int).Value = hotel.ktId;
int count = Convert.ToInt32(com.ExecuteNonQuery());
return count > 0 ? true : false;
}
}