8
Reply

LINQ

Sasi Reddy

Sasi Reddy

Feb 10 2014 1:17 AM
958
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)