I probably am using a single SQLiteDataReader, although I never explicitly handle one.
context = new DataContext(_connection); context.GetTable<T>(); I do all queries on such a table object via Linq. Is there a way to control the DataReader involved with such a query? On Thu, Jul 7, 2011 at 11:06, Joe Mistachkin <sql...@mistachkin.com> wrote: > > Benjamin Savs wrote: > <snip> > If I run Linq-queries from several threads I will get an exception that > states > "*DataReader has been closed*". Is this normal or should there be a way to > issue > concurrent reads? > </snip> > > Are you trying to share a single SQLiteDataReader object instance between > threads > or just the underlying database connection? > > The SQLiteDataReader class is not thread-safe and should not be shared > between > threads. > > -- > Joe Mistachkin > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users