Ejemplo n.º 1
0
 /// <summary>
 /// Execute the query and return a <see cref="System.Data.DataSet"/> object filled with data table results.
 /// </summary>
 /// <returns>Classic <see cref="System.Data.DataSet"/> object.</returns>
 public virtual System.Data.DataSet ExecuteDataSet()
 {
     return(ExecuteInternalCommand(() =>
     {
         using (DbDataReader dr = this.Command.ExecuteReader(System.Data.CommandBehavior.KeyInfo))
         {
             return DataReaderConvertor.ToSystemDataSet(dr);
         }
     }));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Execute the query and return a <see cref="System.Data.DataSet"/> object filled with data table results.
 /// </summary>
 /// <returns>Classic <see cref="System.Data.DataSet"/> object.</returns>
 public async virtual Task <System.Data.DataSet> ExecuteDataSetAsync()
 {
     return(await ExecuteInternalCommand(async() =>
     {
         using (DbDataReader dr = await this.Command.ExecuteReaderAsync(System.Data.CommandBehavior.KeyInfo))
         {
             return DataReaderConvertor.ToSystemDataSet(dr);
         }
     }));
 }