5
Reply

How to select distinct case sensitive record using linq inc#

priyanka

priyanka

Jul 5 2017 7:03 AM
256
Here is my code
 
 
var db = (from customer in entity.CUSTOMER_MASTER
select new { customer.CUSTOMER_NM, customer.CUSTOMER_CODE }).Distinct().OrderBy(customer => customer.CUSTOMER_NM).ToList();
 
Now,Please suggest me,how to do the same using linq,to fetch distinct case senstive record in c# using entity framework

Answers (5)