Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Use Entity model in app - namespace missing

$
0
0

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:

<add name="CommerceEntities" connectionString="metadata=res://*/Data_Access.EDM_Commerce.csdl|res://*/Data_Access.EDM_Commerce.ssdl|res://*/Data_Access.EDM_Commerce.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=COMPUTER;Initial Catalog=Commerce;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />

Anyone have any idea, probably a small reference I am missing, but can't seem to hunt it down.


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>