Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
XML
hi i want to use Refresh Method in dbContext For Update DataBase but is not...

<pre lang="c#">

dbContext.Context.Refresh(RefreshMode.StoreWins, dbContext.Context.Products);

</pre>

i get error :

Error   1   'Shop.ShopEntities' does not contain a definition for 'Refresh' and no extension method 'Refresh' accepting a first argument of type 'Shop.ShopEntities' could be found (are you missing a using directive or an assembly reference?)   D:\Ebook - Learning\My dcuments\Visual Studio 2012\Projects\Shop\Shop\F1_Person.cs  24  30  Shop


Please help me ...
Posted
Updated 2-May-14 9:12am
v3

1 solution

Try the below link for your answer

Refresh method in EF -1
Refresh Method in EF -2
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900