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

📄 bind_ddl.cs

📁 Help Desk Pro has three different interfaces for all three domains of users, providing them with the
💻 CS
字号:
using System;
using System.Data;
using System.Data.SqlClient ;

namespace Final_Project_Alpha
{
	/// <summary>
	/// Summary description for Bind_ddl.
	/// </summary>
	public class Bind_ddl
	{
		
		connect objconn = new connect();
		public Bind_ddl()
		{
			//
			// TODO: Add constructor logic here
			//
		}



		public DataSet Bind_all(string str)
		{
			DataSet ds;
			SqlDataAdapter da;
				
			try
			{
				ds = new DataSet();
				da = new SqlDataAdapter(str, objconn.conn());
				da.Fill(ds);
				return ds;
				
			}
			catch (Exception ex)
			{
				Console.Write(ex.Message);
				ds= null;
				return ds;
			}

		}
		
		
		public DataSet Bind_userAcc(string str)
		{
			DataSet ds2;
			SqlDataAdapter da2;
				
			try
			{
				ds2 = new DataSet();
				da2 = new SqlDataAdapter(str, objconn.conn2());
				da2.Fill(ds2);
				return ds2;
				
			}
			catch (Exception ex)
			{
				Console.Write(ex.Message);
				ds2= null;
				return ds2;
			}

		}
	}
}

⌨️ 快捷键说明

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