Refresh Mode seems not to work

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Refresh Mode seems not to work

Post by Zero-G. » Tue 29 Sep 2009 14:19

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 01 Oct 2009 09:02

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.

Post Reply