query from multi table show in tableview
query from multi table show in tableview I Have 16 tables with difference columns and some common data. And I wanna to show these Common data in one Table in view. Now I use Entity Framework to query from these 16 tables and Use 16 Foreach to put theme in a Common List<Common_ViewModel> and after all send this List to my view : return view(List); List<Common_ViewModel> But My database is big and process take more time. what is the best Idea with multi table query and show common data of tables in one table in View ? Have you tried to create a view, with joins, then update your edmx to mapp the view and the use it, or use stored procedure – Mohammad Ali Jul 1 at 9:22 If you are using a SQL Sever it is probably quicker to use a stored procedure to create the view. – jdweng ...