2014-02-21 62 views
1

ManyToMany_Edit.ascx後:ASP.NET動態數據實體Web應用程序:錯誤更新到6.0.2 EF

System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 

Cannot implicitly convert type 'System.Data.Objects.ObjectContext' to System.Data.Entity.Core.Objects.ObjectContext' 

錯誤代碼:

ds.ContextCreated += (_, ctxCreatedEnventArgs) => ObjectContext = ctxCreatedEnventArgs.Context; 

注:我做了什麼是必需的http://msdn.microsoft.com/en-US/data/upgradeEF6 這是結果..

回答

相關問題