hello, datacontext should be short lived, try check out this post<http://groups.google.com/group/dblinq/browse_thread/thread/59a90072d2c1d2da/29c65f9588006c5d?hl=en>
On Mon, Jun 21, 2010 at 7:55 PM, Graveen <[email protected]> wrote: > Hello, > > I have 2 troubles with DBLinQ. I'm not sure of the scope of theses > troubles: > > 1) Submitting only one table > I load 2 tables from the datacontext: List<tableA> and List<tableB>. > Anyway, tableA is receiving many updates, that are validated at the > end of the process - or reverted. For tableB, this is exactly > different: it receives many updates that are directly saved. > Trouble is i'm forced to use SubmitChanges(), and both tables are > written. I'd like to use SubmitChanges(tableB) at once, while > SubmitChanges(tableA) will be on validation only. > > 2) Refreshing the datas > I have a timer, which is reading periodically the datas: var > datas=( from i in myDb select i).ToList(); The datas are modified by > other applications and are changing over time. > But, if i don't close my datacontext and instanciate a new one, the > datas are not refreshed. Do i miss something that could help me to > perform a periodic and updated read ? > > I'm using latest SVN rev1404 with PostgreSQL 8.4.4. > > Thank you, > > Graveen > > -- > You received this message because you are subscribed to the Google Groups > "DbLinq" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<dblinq%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/dblinq?hl=en. > > -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
