Example #1
0
 /// <summary>
 /// <para>Executes the <see cref="NpgSqlCommandWrapper"/> and returns an <see cref="XmlReader"/>.</para>
 /// </summary>
 /// <param name="command">
 /// <para>The <see cref="NpgSqlCommandWrapper"/> to execute.</para>
 /// </param>
 /// <returns>
 /// <para>An <see cref="XmlReader"/> object.</para>
 /// </returns>
 public XmlReader ExecuteXmlReader(NpgSqlCommandWrapper command)
 {
     IDbConnection connection = OpenConnection();
     PrepareCommand(command, connection);
     SqlCommand sqlCommand = command.Command as SqlCommand;
     return DoExecuteXmlReader(sqlCommand);
 }
Example #2
0
        /// <summary>
        /// <para>Executes the <see cref="NpgSqlCommandWrapper"/> in a transaction and returns an <see cref="XmlReader"/>.</para>
        /// </summary>
        /// <param name="command">
        /// <para>The <see cref="NpgSqlCommandWrapper"/> to execute.</para>
        /// </param>
        /// <param name="transaction">
        /// <para>The <see cref="IDbTransaction"/> to execute the command within.</para>
        /// </param>
        /// <returns>
        /// <para>An <see cref="XmlReader"/> object.</para>
        /// </returns>
        public XmlReader ExecuteXmlReader(NpgSqlCommandWrapper command, IDbTransaction transaction)
        {
            PrepareCommand(command, transaction);

            SqlCommand sqlCommand = command.Command as SqlCommand;

            return(DoExecuteXmlReader(sqlCommand));
        }
Example #3
0
        /// <summary>
        /// <para>Executes the <see cref="NpgSqlCommandWrapper"/> and returns an <see cref="XmlReader"/>.</para>
        /// </summary>
        /// <param name="command">
        /// <para>The <see cref="NpgSqlCommandWrapper"/> to execute.</para>
        /// </param>
        /// <returns>
        /// <para>An <see cref="XmlReader"/> object.</para>
        /// </returns>
        public XmlReader ExecuteXmlReader(NpgSqlCommandWrapper command)
        {
            IDbConnection connection = OpenConnection();

            PrepareCommand(command, connection);
            SqlCommand sqlCommand = command.Command as SqlCommand;

            return(DoExecuteXmlReader(sqlCommand));
        }
Example #4
0
        /// <summary>
        /// <para>Executes the <see cref="NpgSqlCommandWrapper"/> in a transaction and returns an <see cref="XmlReader"/>.</para>
        /// </summary>
        /// <param name="command">
        /// <para>The <see cref="NpgSqlCommandWrapper"/> to execute.</para>
        /// </param>
        /// <param name="transaction">
        /// <para>The <see cref="IDbTransaction"/> to execute the command within.</para>
        /// </param>
        /// <returns>
        /// <para>An <see cref="XmlReader"/> object.</para>
        /// </returns>
        public XmlReader ExecuteXmlReader(NpgSqlCommandWrapper command, IDbTransaction transaction)
        {
            PrepareCommand(command, transaction);

            SqlCommand sqlCommand = command.Command as SqlCommand;
            return DoExecuteXmlReader(sqlCommand);
        }