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