Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to show multiple database table data in one view in MVC
Nagesh Bulbule
Aug 23 2016 12:17 AM
216
Reply
Hello,
Below is my database example for understanding clearly
Database Name
Master1 & Master2 are different databases
1. Master1
Country
(
ID int,
CountryName varchar(50)
)
2. Master2
State
(
ID int,
StateName varchar(50),
CountryID int
)
There is no relationship on table
My question is
How to show these two table data into one view in asp.net mvc
I have one ViewModel as StateVM
One Controller as StateController
so please clear me how to show data using entity framework and Join.
how to show data in State View with proper country name
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to make linkbutton hide and show place holder
please check my code and solve the error?