lee d


I am trying to create a wpf application using entities. I created the model

the app.config looks like this

< xml version="1.0" encoding="utf-8" >
<configuration>
  <connectionStrings>
    <add name="NorthwindEntities" connectionString="metadata=.\Model1.csdl|.\Model1.ssdl|.\Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=Northwind;Integrated Security=True&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
</configuration>

 NorthwindEntities northwind = new NorthwindEntities();
            foreach (Customers c in northwind.Customers)
            {
                Debug.WriteLine(c.CustomerID);
            }

 

I get the error input path does not exist, what could be wrong

Thanks

 




Re: connection string issue

Mike Dodaro


Are the schemas in the same directory as the executable If not this syntax won't work and you'll have to include full path to the schemas.




Re: connection string issue

lee d

That was it, thanks