示例#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);
 }
示例#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));
        }
示例#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));
        }
示例#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);
        }