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