Or do
var customer = from c in _entities.Customers join con in _entities.Contracts on c.CustomerID equals con.customerID where con.contractNo == number select c;
to select client instances using as-is or
Customer customer = (from c in _entities.Customers join con in _entities.Contracts on c.CustomerID equals con.customerID where con.contractNo == number select new Customer{ Surname = c.Surname, Forename= c.Forename, Address = c.Address, Suburb = c.Suburb, State = c.State, Postcode = c.PostCode, PhoneNo = c.PhoneNo }).FirstOrDefault();
create new client instances with only those properties that you are interested in filling out. (if the client class has a constructor without parameters)
source share