Page 1 of 1

Refresh Mode seems not to work

Posted: Tue 29 Sep 2009 14:19
by Zero-G.
Hey

I use VB.NET & your latest controls of mySQL dotConnect

I am calling the following code:

Code: Select all

LinqProvider.LinQProvider.Refresh(Data.Linq.RefreshMode.KeepChanges, LinqProvider.LinQProvider.auftrags)
This code is called after a submitchanges statement from another form. But no new elements are listet. Why? When I restart the program, I can see the all changes.

Can you tell me, why this is?
THX

Posted: Thu 01 Oct 2009 09:02
by AndreyR
The Refresh method is intended to refresh the object collection, not to query the database to obtain new inserted values.
I have tried to refresh the state after an update and succeeded.
To get the new inserted values, you will have to execute the LINQ query anyway.