Class for sqlcmd functionality
상속: IDisposable
예제 #1
0
파일: SqlCmd.cs 프로젝트: yasser10/Henalux
        /// <summary>
        /// Executes a SQL file on the given connection
        /// </summary>
        /// <param name="conn">Connection to execute the file on</param>
        /// <param name="file">The SQL file being executed</param>
        public static void ExecuteFile(
            SqlConnection conn,
            string filePath)
        {
            var sqlCmd = new SqlCmd(conn);

            sqlCmd.ExecuteFile(filePath);
        }
예제 #2
0
        public static void ExecuteStream(
            SqlConnection conn,
            Stream stream)
        {
            var sqlCmd = new SqlCmd(conn);

            sqlCmd.ExecuteStream(stream);
        }
예제 #3
0
 public static void ExecuteStream(
     SqlConnection conn,
     Stream stream)
 {
     var sqlCmd = new SqlCmd(conn);
     sqlCmd.ExecuteStream(stream);
 }
예제 #4
0
		/// <summary>
		/// Executes a SQL file on the given connection
		/// </summary>
		/// <param name="conn">Connection to execute the file on</param>
		/// <param name="file">The SQL file being executed</param>
		public static void ExecuteFile (
			SqlConnection conn,
			string filePath) {
			var sqlCmd = new SqlCmd (conn);
			sqlCmd.ExecuteFile (filePath);
		}