Sasi Reddy

Sasi Reddy

  • NA
  • 346
  • 225.4k

LINQ

Feb 10 2014 1:17 AM
documenttype customerId
1                   ............
2                 ...............
 3                .............. 
 
I have to retrieve documenttype values based on customerId using linq.how to do that?. 
 
List<DBLayer.Models.NCBAccountDocument> basicdetails = (from records in db.NCBAccountDocuments
where records.CustomerReferenceNo == CustomerId
select records).ToList();
I done like that ,but it is retrieving all column values.I need only one column value .please help me 

Answers (8)