I am trying to get the solution explained in the tailspinspyworks e-commerce site to work. Everything seems to be fine, but I can't get the app to see the EDM_Commerce Entity Data Model in the Data_Access folder.
I have the Data_Access folder within the app and have EDM_Commerce.edmx.
Code:
using Commerce_Site.Data_Access;
using (EDM_Commerce db = new EDM_Commerce())
This gives me an error:
Error 1 The type or namespace name 'EDM_Commerce' could not be found (are you missing a using directive or an assembly reference?) C:\Users\pages\Documents\Visual Studio 2010\Projects\Commerce Site\Commerce Site\Controls\PopularItem.ascx.cs 17 20 Commerce Site
This error is shownn 20+ times for each page that connects to it. I have tried to rename it, delete it, add anothe one etc. I also have added the connection reference in the web.config:
I am trying to get the solution explained in the tailspinspyworks e-commerce site to work. Everything seems to be fine, but I can't get the app to see the EDM_Commerce Entity Data Model in the Data_Access folder.
I have the Data_Access folder within the app and have EDM_Commerce.edmx.
Code:
using Commerce_Site.Data_Access;
using(EDM_Commerce db =new EDM_Commerce())
This gives me an error:
Error1The type ornamespace name 'EDM_Commerce' could not be found (are you missing a using directive or an assembly reference?) C:\Users\pages\Documents\VisualStudio2010\Projects\CommerceSite\CommerceSite\Controls\PopularItem.ascx.cs 1720CommerceSite
Hi,
If you are using EntityFramework, please refer "EDM_Commerce" class's namespace correctly.
countycowpok...
Participant
1411 Points
340 Posts
Use Entity model in app - namespace missing
Aug 06, 2012 03:25 AM|LINK
I am trying to get the solution explained in the tailspinspyworks e-commerce site to work. Everything seems to be fine, but I can't get the app to see the EDM_Commerce Entity Data Model in the Data_Access folder.
I have the Data_Access folder within the app and have EDM_Commerce.edmx.
Code:
This gives me an error:
This error is shownn 20+ times for each page that connects to it. I have tried to rename it, delete it, add anothe one etc. I also have added the connection reference in the web.config:
Anyone have any idea, probably a small reference I am missing, but can't seem to hunt it down.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Use Entity model in app - namespace missing
Aug 07, 2012 07:00 AM|LINK
Hi,
If you are using EntityFramework, please refer "EDM_Commerce" class's namespace correctly.
Reguards!