⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helpdb.cs

📁 电子选课系统 电子选课系统电子选课系统电子选课系统
💻 CS
字号:
using System;
using System.Data;
using System.Data.SqlClient;

namespace Park.Common
{
	/// <summary>
	/// HelpDB 的摘要说明。
	/// </summary>
	public class HelpDB
	{
		public static string GetHelp(string content)
		{
			SqlConnection myConnection=Utils.GetConnection();

			SqlCommand myCommand = new SqlCommand("Help_Get_HelpFile", myConnection);

			// Mark the Command as a SPROC
			myCommand.CommandType = CommandType.StoredProcedure;

			// Add Parameters to SPROC
			SqlParameter Content = new SqlParameter("@content", SqlDbType.VarChar, 50);
			Content.Value = content;
			myCommand.Parameters.Add(Content);

			// Add Parameters to SPROC
			SqlParameter retval = new SqlParameter("@helpfile", SqlDbType.VarChar, 50);
			retval.Direction = ParameterDirection.Output;
			myCommand.Parameters.Add(retval);

			// Execute the command
			myConnection.Open();
			myCommand.ExecuteNonQuery();
				
			myCommand.Dispose();
			myConnection.Dispose();

			return  retval.Value.ToString();
		}
	}
}

⌨️ 快捷键说明

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