computer19852007
New Member
I have an ADO.net entity model from a mysql database, the database stores images locations or urls in a table called multimedia, there is a page that displays this images in a gallery. Whenever I save a new image from the website or directly into the database it won't show up in the gallery until I change something in the code (anything, this seems to refresh the model), or go to the model and right click and update it. I tried \[code\]model.Refresh(System.Data.Objects.RefreshMode.ClientWins, model.multimedia)\[/code\] and \[code\]model.Refresh(System.Data.Objects.RefreshMode.StoreWins, model.multimedia)\[/code\], from the controller nothing happens. If I refresh the model from visual studio the images do show up. So the question is how can I refresh the data without having to update the model from Visual Studio?