How to get data from unique column in database with entity framework?
For eg. Table in database with 3 colums. (ID, Name , Password).
I want to get all the data in Name column only.
Can anyone help me in my question.
Thanks a lot :-)
Know the answer? Post it. Somebody with the same question will find it here.
Asp.Net HeinRank #8,083 · 227 pointsPosted May 11, 2015, 11:09 PM EDT
Pranay RanaRank #732 · 3.2K pointsPosted May 12, 2015, 1:52 AM EDT
Pranay RanaRank #732 · 3.2K pointsPosted May 11, 2015, 11:01 PM EDT
var listofstring = (from rec in context.table
select rec.id.ToString() + rec.Name + rec.Password).ToList();