How to Fetch Data Following Criteria

Posted by Jayakumars under C# on 6/8/2017 | Points: 10 | Views : 256 | Status : [Member] [MVP] | Replies : 2
Hi

Normally We can create one model for
one view but i have join linq query to return multiple column
from differen table. How to use multiple table column
assign in single view for populate list MVC5

Mark as Answer if its helpful to you


Responses

Posted by: A2H on: 6/8/2017 [Member] [MVP] Silver | Points: 25

Up
0
Down
Your best option is to use ViewModel to pass data from multiple tables to View in MVC. Please refer below link to see the step by step instruction
http://tutlane.com/tutorial/aspnet-mvc/how-to-use-viewmodel-in-asp-net-mvc-with-example

Thanks,
A2H
My Blog

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 6/9/2017 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi
How to implemented List and entry page in same view in mvc5

Mark as Answer if its helpful to you

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response