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))));
 }
示例#2
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)));
 }
示例#3
0
 public static IAsyncEnumerable <T> ReadAllAnonymousAsync <T>(this IDataReader reader, T proto, ReadOptions readOptions)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateAnonymous(reader, proto, readOptions)));
 }