ExecuteReader() public method

Used to execute a command against the EntitySpaces DataProvider that returns data in the form of a IDataReader.
public ExecuteReader ( tgDataRequest request, tgProviderSignature sig ) : tgDataResponse
request tgDataRequest Contains all of the information necessary to issue and carry out the request
sig tgProviderSignature Contains the required information to locate the EntitySpaces DataProvider
return tgDataResponse
Example #1
0
        /// <summary>
        /// Execute the query and return a DataReader. You must use the 'using' syntax or Close the reader
        /// when finished with it.
        /// </summary>
        /// <returns>The DataReader</returns>
        virtual public IDataReader ExecuteReader()
        {
            FixupSerializedQueries();

            tgDataRequest request = new tgDataRequest();

            this.PopulateRequest(request);

            tgDataProvider provider = new tgDataProvider();
            tgDataResponse response = provider.ExecuteReader(request, this.tg2.Connection.ProviderSignature);

            return(response.DataReader);
        }