示例#1
0
 public static IAsyncEnumerable <object> ExecuteQueryFirstColumnAsync(this DbCommand cmd,
                                                                      CancellationToken cancellationToken = default(CancellationToken))
 {
     return(CreateAsyncEnumerable(cmd, cancellationToken, r => ReadInfoFactory.CreateFirstColumn(r)));
 }
示例#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)));
 }
示例#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))));
 }
示例#8
0
 public static IEnumerable ReadAllFirstColumn(this IDataReader reader)
 {
     return(CreateEnumerable(() => ReadInfoFactory.CreateFirstColumn(reader)));
 }
示例#9
0
 public static IAsyncEnumerable <T> ReadAllAnonymousAsync <T>(this IDataReader reader, T proto, ReadOptions readOptions)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateAnonymous(reader, proto, readOptions)));
 }
示例#10
0
 public static IAsyncEnumerable <T> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new()
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions)));
 }
示例#11
0
 public static IAsyncEnumerable <object[]> ReadAllAsync(this IDataReader reader)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateObjects(reader)));
 }
示例#12
0
 public static IAsyncEnumerable <T> ReadAllFirstColumnAsync <T>(this IDataReader reader)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateFirstColumn <T>(reader)));
 }