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 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> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new() { return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions))); }