Exemplo n.º 1
0
 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))));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 3
0
 public static IAsyncEnumerable <T> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new()
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions)));
 }