Refreshing enity based on view

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Posts: 1
Joined: Sun 09 Dec 2012 21:36

Refreshing enity based on view

Post by angelm » Sun 09 Dec 2012 21:51

I have some issue with get fresh data after update table.
in my grid i bind data from view, and i cant refresh view after update.

Dim context As MyEntities
sub Procedure_update
Dim RTable As MyTable = (From it In context.MyTables _
Where it.Id = RplanId).FirstOrDefault
RTable.MyValue = 10
End sub

sub Procedure_refresh_ViewMyTable
Dim query = From it In context.ViewMyTables _
Select it
End sub

Thanks for any advice

Site Admin
Posts: 8241
Joined: Thu 14 Aug 2008 12:44

Re: Refreshing enity based on view

Post by Shalex » Wed 12 Dec 2012 11:42

The examples of data binding are available here: ... n-WinForms ... ta-source/

If this doesn't help, send us:
1) the exact text of the error (if any) and its stack trace;
2) a small test project with the corresponding DDL/DML script to reproduce the issue in our environment.

Post Reply