dbContext不包含刷新方法 [英] dbContext Not Contain Refresh Method

查看:56
本文介绍了dbContext不包含刷新方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 ...

推荐答案

请尝试以下链接获取答案



EF -1中的刷新方法

EF -2中的刷新方法
Try the below link for your answer

Refresh method in EF -1
Refresh Method in EF -2


这篇关于dbContext不包含刷新方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆