Generated code has many missing assemblies
Posted: Mon 04 Feb 2019 21:58
Learning Entity developer with SQLite for an embedded application. Getting closer. My database validates in Entity Developer. When I create code I get a lot of errors. My generated code is throwing errors on the following using statements. These statements are also showing as unused:
If I delete the using statements that are the issue and add:
those issues go away. Is this just simply editing templates to remove/add the proper using refereences or is there something deeper I am missing?
Code: Select all
using System.Data.EntityClient;
using System.Data.Metadata.Edm;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
I *do* have System.Data in my references.And the error(s) looks like this:
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'EntityClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) Entity Designer Test C:\Users\erics\source\repos\Entity Designer Test\Entity Designer Test\DataModel1.Designer.cs 21 Active
If I delete the using statements that are the issue and add:
Code: Select all
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.EntityClient;