SQL Server Performance

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

Discussion in 'SQL Server 2005 General Developer Questions' started by sasivashok, Aug 12, 2009.

  1. sasivashok New Member

    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
  2. MohammedU New Member

Share This Page