public DbReaderExSource(DbReaderEx reader) { if (reader == null) { throw new ArgumentNullException("reader"); } _reader = reader; _source = new DataSetSource(_reader.ToDataSet()); }
public ISource CreateDbSourceEx(string id, string connectionString) { DbReaderEx reader = (DbReaderEx)_readerFactory.CreateDbReaderEx(id, connectionString); return(new DeferredSource(() => new DbReaderExSource(reader))); }
public ISource CreateDbSourceEx(string id, string connectionString, IDictionary <string, string> namedQueries) { DbReaderEx reader = (DbReaderEx)_readerFactory.CreateDbReaderEx(id, connectionString, namedQueries); return(new DeferredSource(() => new DbReaderExSource(reader))); }