Refresh a view

Posts   
 
    
ledaker
User
Posts: 8
Joined: 26-Oct-2008
# Posted on: 09-Nov-2008 15:56:44   

Hi all,my question is very simple how i can refresh a retrived data from a view in LLBL

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Nov-2008 19:45:05   

Hi ledaker.

Hi all,my question is very simple how i can refresh a retrived data from a view in LLBL

Just retrieve it again.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 10-Nov-2008 09:52:06   

ledaker wrote:

Hi all,my question is very simple how i can refresh a retrived data from a view in LLBL

Depends on what you mean with 'refresh'. Did you change the data in the collection?

Frans Bouma | Lead developer LLBLGen Pro
ledaker
User
Posts: 8
Joined: 26-Oct-2008
# Posted on: 10-Nov-2008 22:37:12   

i change data in the database

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Nov-2008 06:41:36   

Then fetch again is the way. Be aware of cleaning the view before refetch it:

using (DataAccessAdapter adapter = new DataAccessAdapter())
{
    view.Clear();
    adapter.FetchTypedView(view);
}
David Elizondo | LLBLGen Support Team