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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pranay RanaPosted May 12, 2015, 5:52 AM
Asp.Net HeinPosted May 12, 2015, 3:09 AM
Pranay RanaPosted May 12, 2015, 3:01 AM
var listofstring = (from rec in context.table
select rec.id.ToString() + rec.Name + rec.Password).ToList();