How to store data from database into arraylist with entity framework??
I want correct answer ... ENTITY FRAMEWORK ONLY!!!!
Thanks a lot for my viewing my post :-)
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.
Pankil BhattPosted May 12, 2015, 2:34 AM
Asp.Net HeinPosted May 12, 2015, 2:34 AM
Pankil BhattPosted May 12, 2015, 2:32 AM
Always use IEnumerable instead of arrays. Arrays already implement IEnumerable.
Whenever possible avoid nullable types. No selected item should be a NoSelectedItem special class, no items in a list should be an empty enumerable.
When getting data in your view model from a IQueryable result, call ToList() to force execution of the queries in your data layer.