Example #1
0
 public static IAsyncEnumerable <object> ExecuteQueryFirstColumnAsync(this DbCommand cmd,
                                                                      CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cmd, cancellationToken, r => ReadInfoFactory.CreateFirstColumn(r)));
 }
Example #2
0
 public static IAsyncEnumerable <T> ExecuteQueryAsync <T>(this DbCommand cmd, ReadOptions readOptions = null,
                                                          CancellationToken cancellationToken         = default(CancellationToken)) where T : new()
 {
     return(CreateAsyncEnumerable(cmd, cancellationToken, r => ReadInfoFactory.CreateByType <T>(r, readOptions)));
 }
Example #3
0
 public static IAsyncEnumerable <T> ExecuteQueryAnonymousAsync <T>(this DbCommand cmd, T proto, ReadOptions readOptions = null,
                                                                   CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cmd, cancellationToken, r => ReadInfoFactory.CreateAnonymous <T>(r, proto, readOptions)));
 }
 public IAsyncEnumerable <T> ExecuteQueryAnonymousAsync <T>(T proto, ReadOptions readOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cancellationToken, r => ReadInfoFactory.CreateAnonymous(r, proto, context.PrepareReadOptions(readOptions))));
 }
 public IAsyncEnumerable <T> ExecuteQueryFirstColumnAsync <T>(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cancellationToken, r => ReadInfoFactory.CreateFirstColumn <T>(r)));
 }
 public IAsyncEnumerable <object[]> ExecuteQueryAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cancellationToken, r => ReadInfoFactory.CreateObjects(r)));
 }
 public IAsyncEnumerable <T> ExecuteQueryAsync <T>(ReadOptions readOptions = null, CancellationToken cancellationToken = default(CancellationToken)) where T : new()
 {
     return(CreateAsyncEnumerable(cancellationToken, r => ReadInfoFactory.CreateByType <T>(r, context.PrepareReadOptions(readOptions))));
 }
Example #8
0
 public static IEnumerable ReadAllFirstColumn(this IDataReader reader)
 {
     return(CreateEnumerable(() => ReadInfoFactory.CreateFirstColumn(reader)));
 }
Example #9
0
 public static IAsyncEnumerable <T> ReadAllAnonymousAsync <T>(this IDataReader reader, T proto, ReadOptions readOptions)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateAnonymous(reader, proto, readOptions)));
 }
Example #10
0
 public static IAsyncEnumerable <T> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new()
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions)));
 }
Example #11
0
 public static IAsyncEnumerable <object[]> ReadAllAsync(this IDataReader reader)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateObjects(reader)));
 }
Example #12
0
 public static IAsyncEnumerable <T> ReadAllFirstColumnAsync <T>(this IDataReader reader)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateFirstColumn <T>(reader)));
 }