cannot convert from 'System.Data.Objects.ObjectParameter' to 'System.Data.Entity.Core.Objects.ObjectParameter'

asp.net-mvc c# entity-framework

Question

While creating an ADO.NET Entity Data Model, following error occured:

Error 66 Argument 10: cannot convert from 'System.Data.Objects.ObjectParameter' to 'System.Data.Entity.Core.Objects.ObjectParameter' D:\Aziz\Aziz Project\Development\Running Development\Web\pos\pos\Model1.Context.cs 351 278 pos

How is it possible to solve this error?

1
14
4/19/2018 7:51:47 AM

Popular Answer

using System.Data.Object;
using System.Data.Objects.DataClasses;

Replace for:

using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.Objects.DataClasses;
36
5/26/2016 5:03:57 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow