The Type or namespace name 'Northwind' could not be found

  • Hi friends,

    I am new for Linq to sql. I am using web application that vs 2005 and MS Sql server 2005.

    I have this code

    Northwnd nw = new Northwnd(@"northwnd.mdf");

    string companyNameQuery =

    from cust in nw.Customers

    where cust.City == "London"

    select cust.CompanyName;

    foreach (string customer in companyNameQuery)

    {

    Response.Write(customer);

    }

    While i build this application i got the error.

    That is "The type or namespace name 'Northwind' could not be found"

    Please make sure i write the code correctly or what namespace i need to include.

    i got in other forum they told using System.Data.Linq;

    using System.Data.Linq.Mapping;

    using System.Data;

    using System.Collections.Generic;

    using System.Reflection;

    using System.Linq;

    using System.Linq.Expressions;

    using System.ComponentModel;

    using System;

    But in my application i have namespace using System.Data.DLinq only .and using System.Data.DLinq.Expression and Mapping .

    Please clear my doubt.

    Hope yours reply.

    Thanks

  • If you have not installed it you maybe missing the Northwind database, I have posted cleaned up versions in the thread below download and restore it to your database.

    http://www.sqlservercentral.com/Forums/Topic743867-1291-3.aspx

    Kind regards,
    Gift Peddie

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply