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?
using System.Data.Object;
using System.Data.Objects.DataClasses;
Replace for:
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.Objects.DataClasses;
This is one of most frequent compile-time errors you may face in the Entity Framework. This occcurs when a
By default, while compiling your project, the framework includes the namespace using System.Data.Objects;
.
Solution:
To fix this issue:
System.Data.Entity.Core.Objects
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With