/// <summary>
 /// Executes the command against the connection and converts the results to <typeparamref name="TEntity" /> objects.
 /// </summary>
 /// <typeparam name="TEntity">The type of the entity.</typeparam>
 /// <param name="dataQuery">The <see cref="IDataQuery"/> for this extension method.</param>
 /// <returns>
 /// An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <typeparamref name="TEntity" /> objects.
 /// </returns>
 public static IEnumerable <TEntity> Query <TEntity>(this IDataQuery dataQuery)
     where TEntity : class, new()
 {
     return(dataQuery.Query(ReaderFactory.EntityFactory <TEntity>));
 }
 /// <summary>
 /// Executes the command against the connection and converts the results to dynamic objects.
 /// </summary>
 /// <param name="dataQuery">The <see cref="IDataQuery"/> for this extension method.</param>
 /// <returns>
 /// An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of dynamic objects.
 /// </returns>
 public static IEnumerable <dynamic> Query(this IDataQuery dataQuery)
 {
     return(dataQuery.Query(ReaderFactory.DynamicFactory));
 }