How can i get only distinct record from table in Entity Framework?
Thanks.
How can i get only distinct record from table in Entity Framework?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
nallyaRank #8,588 · 219 reputationPosted Sep 20, 2012, 9:27 PM EDT
var query1 = from bookinformation in ent.BOOKINFORMATIONs select bookinformation.AUTHORNAME;
query1 = query1.Distinct();