src/Shared/EntityFramework/Core/Common/Utils/CommandHelper.cs
// <summary>
// Consumes all rows and result sets from the reader. This allows client to retrieve
// parameter values and intercept any store exceptions.
// </summary>
// <param name="reader"> Reader to consume. </param>
Consumes all rows and result sets from the reader. This allows client to retrieve
parameter values and intercept any store exceptions.
Consumes all rows and result sets from the reader . This allows client to retrieve parameter values and intercept any store exceptions .
internal static void ConsumeReader(DbDataReader reader)
        {
            if (null != reader
                && !reader.IsClosed)
            {
                while (reader.NextResult())
                {
                }
            }
        }
internal static void ConsumeReader ( DbDataReader reader ) { if ( null != reader && ! reader . IsClosed ) { while ( reader . NextResult ( ) ) { } } }
Consumes all rows and result sets from the reader.
Consumes all rows and result sets from the reader .
// Note that we only walk through the result sets. We don't need // to walk through individual rows (though underlying provider // implementation may do so)
reader
DbDataReader
Reader to consume.
Reader to consume .