Example.AdventureWorks2008ObjectContext_Dal.DbCtx.AdventureWorksLT2008R2Entities.QueryCustomerByID C# (CSharp) Method

QueryCustomerByID() public method

public QueryCustomerByID ( int customerID ) : IQueryable
customerID int
return IQueryable
        public IQueryable<Customer> QueryCustomerByID(int customerID)
        {
            this.LogInformationData("customerID", customerID);

            IQueryable<Customer> q = from cust in this.Customers
                where cust.CustomerID == customerID
                select cust;

            return q;
        }