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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sqlhelper.cs

?? C#代碼查看Sqlserver等不同數(shù)據(jù)庫(kù)的源代碼
?? CS
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
			// 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>
		/// <remarks>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人日日夜夜| 日本一区二区三区久久久久久久久不| 91免费看片在线观看| 成人久久视频在线观看| 高清不卡一区二区| 成人小视频免费在线观看| 国产精品系列在线播放| 国产成人av影院| 国产69精品久久99不卡| 成人免费的视频| 99久久精品免费看国产| 成人的网站免费观看| 97se亚洲国产综合自在线| 日本高清免费不卡视频| 欧美日韩在线综合| 欧美一区日韩一区| 久久婷婷国产综合国色天香| 国产亚洲综合在线| 亚洲欧美偷拍另类a∨色屁股| 亚洲欧美偷拍卡通变态| 亚洲成人一区二区| 蜜桃久久久久久| 国产原创一区二区三区| 成人丝袜高跟foot| 91国产免费观看| 欧美一区二区三区日韩| 久久网站最新地址| 亚洲精品视频免费看| 五月天婷婷综合| 国产伦精品一区二区三区免费| 成人午夜精品一区二区三区| 色哟哟精品一区| 日韩一卡二卡三卡| 中文字幕不卡一区| 亚洲国产成人av| 国内精品国产三级国产a久久| 成人高清视频在线| 精品视频免费看| 久久久久久久综合狠狠综合| 中文字幕在线观看不卡| 午夜亚洲国产au精品一区二区| 美女免费视频一区二区| 99re视频这里只有精品| 欧美一区二区在线免费观看| 国产三级精品视频| 亚洲国产日韩a在线播放| 国产揄拍国内精品对白| 一本色道久久综合亚洲91| 日韩免费福利电影在线观看| 中文字幕av一区二区三区免费看 | 欧美日韩成人综合天天影院| 欧美大片日本大片免费观看| 国产精品久久久久久久岛一牛影视 | 久久午夜羞羞影院免费观看| 一区二区三区色| 韩国精品免费视频| 欧美色图一区二区三区| 久久久久久黄色| 午夜影院久久久| 夫妻av一区二区| 日韩亚洲欧美综合| 中文字幕在线观看不卡| 极品美女销魂一区二区三区免费| 色屁屁一区二区| 国产视频亚洲色图| 日韩成人免费电影| 91行情网站电视在线观看高清版| 久久婷婷色综合| 肉丝袜脚交视频一区二区| 成人性色生活片| 2021久久国产精品不只是精品| 亚洲国产精品欧美一二99| 成人亚洲一区二区一| 精品少妇一区二区三区视频免付费 | 国产精品天干天干在线综合| 免费观看一级特黄欧美大片| 欧美三级在线视频| 国产精品护士白丝一区av| 精品在线播放午夜| 欧美电影在线免费观看| 一区二区三区 在线观看视频 | 精品国产三级电影在线观看| 日精品一区二区三区| 欧美最新大片在线看| 国产精品理论在线观看| 国产精品白丝jk白祙喷水网站| 欧美成人bangbros| 日本 国产 欧美色综合| 在线播放中文一区| 亚洲成人先锋电影| 欧美色视频在线观看| 亚洲夂夂婷婷色拍ww47 | 欧美mv日韩mv国产网站| 美国三级日本三级久久99| 欧美一区二区成人| 五月天激情小说综合| 欧美日韩激情一区二区三区| 亚洲午夜在线观看视频在线| 欧美在线视频日韩| 亚洲电影一区二区三区| 在线观看视频欧美| 亚洲电影在线免费观看| 欧美日本在线观看| 天堂久久久久va久久久久| 精品视频免费看| 日韩成人伦理电影在线观看| 91精品一区二区三区久久久久久| 图片区小说区区亚洲影院| 欧美特级限制片免费在线观看| 亚洲综合免费观看高清在线观看| 在线观看区一区二| 婷婷中文字幕一区三区| 日韩欧美在线一区二区三区| 麻豆国产欧美日韩综合精品二区 | 亚洲精品一区二区三区99| 激情综合色播激情啊| 欧美激情在线观看视频免费| 91丝袜国产在线播放| 一区二区在线观看免费 | 亚洲免费大片在线观看| 91久久精品日日躁夜夜躁欧美| 一区二区三区日韩精品视频| 欧美精品一级二级| 国产资源精品在线观看| 国产精品高潮呻吟久久| 欧美性生交片4| 免费亚洲电影在线| 国产欧美日韩不卡| 色婷婷精品大在线视频| 日日夜夜精品视频天天综合网| 日韩美女一区二区三区四区| 国产在线一区二区综合免费视频| 国产精品妹子av| 欧美亚一区二区| 狠狠色综合日日| 亚洲区小说区图片区qvod| 欧美一区二区三区视频在线| 国产九色sp调教91| 亚洲免费色视频| 欧美福利视频一区| 懂色av一区二区三区蜜臀| 一区二区日韩av| 久久久激情视频| 欧美婷婷六月丁香综合色| 国模套图日韩精品一区二区| 亚洲欧美色综合| 欧美电视剧在线观看完整版| 成人黄色大片在线观看| 日韩电影免费一区| 亚洲欧美综合色| 精品久久久久99| 欧美亚洲精品一区| 国产成a人亚洲精品| 午夜精品123| 国产欧美日韩亚州综合| 69久久夜色精品国产69蝌蚪网| 国产伦精品一区二区三区免费| 亚洲综合一区在线| 中文字幕巨乱亚洲| 日韩一级视频免费观看在线| 91麻豆国产在线观看| 久久99九九99精品| 亚洲国产一二三| 国产精品国模大尺度视频| 精品欧美乱码久久久久久1区2区| 91精品办公室少妇高潮对白| 国内一区二区视频| 天天综合日日夜夜精品| 国产精品乱子久久久久| 26uuu色噜噜精品一区二区| 欧美区视频在线观看| 99精品欧美一区二区三区小说| 韩国女主播一区| 奇米在线7777在线精品| 亚洲一区二区视频| 国产精品福利一区二区三区| 精品久久久久久久久久久久包黑料| 欧美视频日韩视频| 91视频观看视频| 高清不卡在线观看| 国内精品免费在线观看| 蜜臀精品一区二区三区在线观看| 亚洲一区二区在线免费观看视频| 亚洲欧美在线aaa| 国产欧美日本一区二区三区| 精品国产91九色蝌蚪| 3atv在线一区二区三区| 在线观看免费一区| 色94色欧美sute亚洲线路一ni| 不卡av在线网| 国产 日韩 欧美大片| 国产成人精品免费一区二区| 久久99九九99精品| 久久国产夜色精品鲁鲁99| 美腿丝袜亚洲三区| 美女网站色91| 日本va欧美va瓶| 蜜臀av性久久久久蜜臀aⅴ四虎 | 国产经典欧美精品| 国产精品亚洲一区二区三区在线|