亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sqlhelper.cs

?? 使用工具為.net2003
?? CS
?? 第 1 頁 / 共 5 頁
字號:
			
			// detach the SqlParameters from the command object, so they can be used again.
			cmd.Parameters.Clear();
			return retval;
			
		}

		/// <summary>
		/// Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection 
		/// using the provided parameter values.  This method will query the database to discover the parameters for the 
		/// stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
		/// </summary>
		/// <remarks>
		/// This method provides no access to output parameters or the stored procedure's return value parameter.
		/// 
		/// e.g.:  
		///  int orderCount = (int)ExecuteScalar(conn, "GetOrderCount", 24, 36);
		/// </remarks>
		/// <param name="connection">a valid SqlConnection</param>
		/// <param name="spName">the name of the stored procedure</param>
		/// <param name="parameterValues">an array of objects to be assigned as the input values of the stored procedure</param>
		/// <returns>an object containing the value in the 1x1 resultset generated by the command</returns>
		public static object ExecuteScalar(SqlConnection connection, string spName, params object[] parameterValues)
		{
			//if we receive parameter values, we need to figure out where they go
			if ((parameterValues != null) && (parameterValues.Length > 0)) 
			{
				//pull the parameters for this stored procedure from the parameter cache (or discover them & populate the cache)
				SqlParameter[] commandParameters = SqlHelperParameterCache.GetSpParameterSet(connection.ConnectionString, spName);

				//assign the provided values to these parameters based on parameter order
				AssignParameterValues(commandParameters, parameterValues);

				//call the overload that takes an array of SqlParameters
				return ExecuteScalar(connection, CommandType.StoredProcedure, spName, commandParameters);
			}
				//otherwise we can just call the SP without params
			else 
			{
				return ExecuteScalar(connection, CommandType.StoredProcedure, spName);
			}
		}

		/// <summary>
		/// Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided SqlTransaction. 
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount");
		/// </remarks>
		/// <param name="transaction">a valid SqlTransaction</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command</param>
		/// <returns>an object containing the value in the 1x1 resultset generated by the command</returns>
		public static object ExecuteScalar(SqlTransaction transaction, CommandType commandType, string commandText)
		{
			//pass through the call providing null for the set of SqlParameters
			return ExecuteScalar(transaction, commandType, commandText, (SqlParameter[])null);
		}

		/// <summary>
		/// Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction
		/// using the provided parameters.
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new SqlParameter("@prodid", 24));
		/// </remarks>
		/// <param name="transaction">a valid SqlTransaction</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command</param>
		/// <param name="commandParameters">an array of SqlParamters used to execute the command</param>
		/// <returns>an object containing the value in the 1x1 resultset generated by the command</returns>
		public static object ExecuteScalar(SqlTransaction transaction, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
		{
			//create a command and prepare it for execution
			SqlCommand cmd = new SqlCommand();
			PrepareCommand(cmd, transaction.Connection, transaction, commandType, commandText, commandParameters);
			
			//execute the command & return the results
			object retval = cmd.ExecuteScalar();
			
			// detach the SqlParameters from the command object, so they can be used again.
			cmd.Parameters.Clear();
			return retval;
		}

		/// <summary>
		/// Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified
		/// SqlTransaction using the provided parameter values.  This method will query the database to discover the parameters for the 
		/// stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
		/// </summary>
		/// <remarks>
		/// This method provides no access to output parameters or the stored procedure's return value parameter.
		/// 
		/// e.g.:  
		///  int orderCount = (int)ExecuteScalar(trans, "GetOrderCount", 24, 36);
		/// </remarks>
		/// <param name="transaction">a valid SqlTransaction</param>
		/// <param name="spName">the name of the stored procedure</param>
		/// <param name="parameterValues">an array of objects to be assigned as the input values of the stored procedure</param>
		/// <returns>an object containing the value in the 1x1 resultset generated by the command</returns>
		public static object ExecuteScalar(SqlTransaction transaction, string spName, params object[] parameterValues)
		{
			//if we receive parameter values, we need to figure out where they go
			if ((parameterValues != null) && (parameterValues.Length > 0)) 
			{
				//pull the parameters for this stored procedure from the parameter cache (or discover them & populate the cache)
				SqlParameter[] commandParameters = SqlHelperParameterCache.GetSpParameterSet(transaction.Connection.ConnectionString, spName);

				//assign the provided values to these parameters based on parameter order
				AssignParameterValues(commandParameters, parameterValues);

				//call the overload that takes an array of SqlParameters
				return ExecuteScalar(transaction, CommandType.StoredProcedure, spName, commandParameters);
			}
				//otherwise we can just call the SP without params
			else 
			{
				return ExecuteScalar(transaction, CommandType.StoredProcedure, spName);
			}
		}

		#endregion ExecuteScalar	

		#region ExecuteXmlReader

		/// <summary>
		/// Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. 
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders");
		/// </remarks>
		/// <param name="connection">a valid SqlConnection</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command using "FOR XML AUTO"</param>
		/// <returns>an XmlReader containing the resultset generated by the command</returns>
		public static XmlReader ExecuteXmlReader(SqlConnection connection, CommandType commandType, string commandText)
		{
			//pass through the call providing null for the set of SqlParameters
			return ExecuteXmlReader(connection, commandType, commandText, (SqlParameter[])null);
		}

		/// <summary>
		/// Execute a SqlCommand (that returns a resultset) against the specified SqlConnection 
		/// using the provided parameters.
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24));
		/// </remarks>
		/// <param name="connection">a valid SqlConnection</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command using "FOR XML AUTO"</param>
		/// <param name="commandParameters">an array of SqlParamters used to execute the command</param>
		/// <returns>an XmlReader containing the resultset generated by the command</returns>
		public static XmlReader ExecuteXmlReader(SqlConnection connection, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
		{
			//create a command and prepare it for execution
			SqlCommand cmd = new SqlCommand();
			PrepareCommand(cmd, connection, (SqlTransaction)null, commandType, commandText, commandParameters);
			
			//create the DataAdapter & DataSet
			XmlReader retval = cmd.ExecuteXmlReader();
			
			// detach the SqlParameters from the command object, so they can be used again.
			cmd.Parameters.Clear();
			return retval;
			
		}

		/// <summary>
		/// Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection 
		/// using the provided parameter values.  This method will query the database to discover the parameters for the 
		/// stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
		/// </summary>
		/// <remarks>
		/// This method provides no access to output parameters or the stored procedure's return value parameter.
		/// 
		/// e.g.:  
		///  XmlReader r = ExecuteXmlReader(conn, "GetOrders", 24, 36);
		/// </remarks>
		/// <param name="connection">a valid SqlConnection</param>
		/// <param name="spName">the name of the stored procedure using "FOR XML AUTO"</param>
		/// <param name="parameterValues">an array of objects to be assigned as the input values of the stored procedure</param>
		/// <returns>an XmlReader containing the resultset generated by the command</returns>
		public static XmlReader ExecuteXmlReader(SqlConnection connection, string spName, params object[] parameterValues)
		{
			//if we receive parameter values, we need to figure out where they go
			if ((parameterValues != null) && (parameterValues.Length > 0)) 
			{
				//pull the parameters for this stored procedure from the parameter cache (or discover them & populate the cache)
				SqlParameter[] commandParameters = SqlHelperParameterCache.GetSpParameterSet(connection.ConnectionString, spName);

				//assign the provided values to these parameters based on parameter order
				AssignParameterValues(commandParameters, parameterValues);

				//call the overload that takes an array of SqlParameters
				return ExecuteXmlReader(connection, CommandType.StoredProcedure, spName, commandParameters);
			}
				//otherwise we can just call the SP without params
			else 
			{
				return ExecuteXmlReader(connection, CommandType.StoredProcedure, spName);
			}
		}

		/// <summary>
		/// Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. 
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders");
		/// </remarks>
		/// <param name="transaction">a valid SqlTransaction</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command using "FOR XML AUTO"</param>
		/// <returns>an XmlReader containing the resultset generated by the command</returns>
		public static XmlReader ExecuteXmlReader(SqlTransaction transaction, CommandType commandType, string commandText)
		{
			//pass through the call providing null for the set of SqlParameters
			return ExecuteXmlReader(transaction, commandType, commandText, (SqlParameter[])null);
		}

		/// <summary>
		/// Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction
		/// using the provided parameters.
		/// </summary>
		/// <remarks>
		/// e.g.:  
		///  XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24));
		/// </remarks>
		/// <param name="transaction">a valid SqlTransaction</param>
		/// <param name="commandType">the CommandType (stored procedure, text, etc.)</param>
		/// <param name="commandText">the stored procedure name or T-SQL command using "FOR XML AUTO"</param>
		/// <param name="commandParameters">an array of SqlParamters used to execute the command</param>
		/// <returns>an XmlReader containing the resultset generated by the command</returns>
		public static XmlReader ExecuteXmlReader(SqlTransaction transaction, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
		{
			//create a command and prepare it for execution
			SqlCommand cmd = new SqlCommand();
			PrepareCommand(cmd, transaction.Connection, transaction, commandType, commandText, commandParameters);
			
			//create the DataAdapter & DataSet
			XmlReader retval = cmd.ExecuteXmlReader();
			
			// detach the SqlParameters from the command object, so they can be used again.
			cmd.Parameters.Clear();
			return retval;			
		}

		/// <summary>
		/// Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified 
		/// SqlTransaction using the provided parameter values.  This method will query the database to discover the parameters for the 
		/// stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
		/// </summary>
		/// <r

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.欧美色图| 久久综合一区二区| 91免费看`日韩一区二区| 成人丝袜高跟foot| 懂色av中文一区二区三区 | 激情小说亚洲一区| 另类小说欧美激情| 韩日精品视频一区| 国产精品性做久久久久久| 国产盗摄女厕一区二区三区| 国产麻豆午夜三级精品| 国产最新精品精品你懂的| 国产激情视频一区二区在线观看| 国产一区亚洲一区| 懂色av一区二区三区免费观看| 粉嫩一区二区三区性色av| 风间由美一区二区av101| 成人激情黄色小说| 日本高清不卡一区| 欧美理论电影在线| 日韩免费电影网站| 久久久久久久久蜜桃| 国产精品久久久久久久久免费丝袜| 国产精品麻豆网站| 亚洲综合av网| 男人的天堂久久精品| 国产电影一区在线| 91美女蜜桃在线| 欧美一级一区二区| 国产欧美视频一区二区| 亚洲精品国产第一综合99久久| 午夜久久久久久久久久一区二区| 久久电影网站中文字幕| 国产一区二区三区视频在线播放| 成人免费毛片高清视频| 欧美日韩久久久| 久久日一线二线三线suv| 国产精品成人一区二区艾草| 亚洲成人av免费| 国产高清成人在线| 精品视频一区二区三区免费| 精品va天堂亚洲国产| 亚洲欧美偷拍三级| 精品在线观看视频| 在线一区二区三区四区五区| 精品伦理精品一区| 一区二区三区在线观看动漫| 激情小说欧美图片| 欧洲一区在线观看| 久久精品夜夜夜夜久久| 亚洲一区在线免费观看| 国产精品一二三| 欧美日韩亚洲综合| 国产精品美女www爽爽爽| 午夜精品视频在线观看| 国产精品99精品久久免费| 欧美性色aⅴ视频一区日韩精品| 久久伊99综合婷婷久久伊| 一区二区三区av电影 | 日韩欧美电影一二三| 日韩一区中文字幕| 精品中文字幕一区二区小辣椒| 99精品国产热久久91蜜凸| 精品精品欲导航| 亚洲高清免费在线| av不卡在线播放| 久久综合九色综合欧美98| 亚洲aⅴ怡春院| 色综合久久综合网欧美综合网| 精品久久久久久久久久久久久久久 | 欧美在线不卡一区| 国产欧美一区视频| 美女视频网站久久| 欧洲精品在线观看| 中文成人av在线| 国产麻豆一精品一av一免费 | 69堂国产成人免费视频| 亚洲人成在线播放网站岛国| 国产传媒日韩欧美成人| 日韩无一区二区| 亚洲18色成人| 欧美日韩在线三级| 亚洲免费观看视频| 99re在线视频这里只有精品| 国产欧美综合在线观看第十页| 精品一区二区三区视频| 777欧美精品| 亚洲成人福利片| 欧洲人成人精品| 一二三区精品福利视频| 97se亚洲国产综合自在线观| 国产精品你懂的| 福利91精品一区二区三区| 久久蜜桃av一区精品变态类天堂| 精彩视频一区二区| xnxx国产精品| 国产精品综合在线视频| 久久综合999| 国产露脸91国语对白| 久久综合五月天婷婷伊人| 久久99最新地址| www一区二区| 国产精品系列在线观看| 久久久久久久网| 成人免费电影视频| 国产欧美日韩不卡免费| 国产aⅴ综合色| 中文字幕一区二区三区不卡| eeuss鲁片一区二区三区在线观看| 中文字幕乱码亚洲精品一区 | 久久夜色精品一区| 激情小说亚洲一区| 国产片一区二区三区| 成人在线综合网站| 综合电影一区二区三区| 日本韩国欧美国产| 天堂一区二区在线| 精品少妇一区二区三区视频免付费| 捆绑调教一区二区三区| 精品国产乱子伦一区| 国产成人在线网站| 亚洲视频一区在线| 欧美日韩亚州综合| 狠狠色狠狠色合久久伊人| 国产三级一区二区| 色综合中文综合网| 亚洲一线二线三线久久久| 欧美日韩国产一级| 久久99久久99| 国产精品久久久久影院| 欧美性大战久久久久久久| 日本伊人色综合网| 国产人妖乱国产精品人妖| 色综合视频在线观看| 日韩在线播放一区二区| 欧美精品一区二区三区视频| 99久久免费精品高清特色大片| 亚洲成人av免费| 久久久久久久久久看片| 91免费观看视频在线| 日本中文字幕一区| 中文字幕av在线一区二区三区| 色偷偷88欧美精品久久久| 日韩不卡一二三区| 中文字幕电影一区| 欧美裸体一区二区三区| 国产成人免费视频网站| 亚洲国产日日夜夜| 久久九九久精品国产免费直播| 色综合天天天天做夜夜夜夜做| 视频一区二区三区在线| 国产精品久线在线观看| 欧美一级欧美三级在线观看| 成人v精品蜜桃久久一区| 五月天国产精品| 国产精品美女www爽爽爽| 欧美另类久久久品| www..com久久爱| 日韩精品亚洲专区| 综合婷婷亚洲小说| 久久网这里都是精品| 欧美日韩一区不卡| 成人精品gif动图一区| 天堂va蜜桃一区二区三区| 国产精品麻豆视频| 精品久久久久久久久久久久久久久 | 中文字幕中文乱码欧美一区二区| 欧美久久久久久久久中文字幕| 国产999精品久久| 麻豆精品久久精品色综合| 一区二区三区在线高清| 亚洲国产精品激情在线观看| 欧美一级在线视频| 欧美日韩综合不卡| 91网站最新地址| 国产成人免费视频网站高清观看视频 | 国产精品无人区| 欧美一级高清大全免费观看| 一本一本大道香蕉久在线精品| 国产美女一区二区| 蜜臀久久99精品久久久画质超高清| 亚洲激情图片一区| 亚洲欧洲成人精品av97| 日本一区二区三区免费乱视频 | 国产精品三级视频| 精品久久五月天| 欧美一二三四区在线| 欧美日韩精品系列| 在线一区二区三区四区| 色综合色狠狠天天综合色| 成人高清视频在线| 懂色av一区二区三区免费看| 国产在线精品不卡| 九色porny丨国产精品| 看片的网站亚洲| 日韩电影在线观看网站| 五月天视频一区| 五月开心婷婷久久| 日本欧美一区二区三区乱码| 亚洲无线码一区二区三区|