priyanka

priyanka

  • NA
  • 215
  • 123.3k

How to select distinct case sensitive record using linq inc#

Jul 5 2017 7:03 AM
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)