I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
I have two tables:
1 - Bloggers: - bloggerID (int);
- bloggerName (string)
2 - Blogs: - blogID (int);
-bloggerID (int);
- blogTitle (string);
- blogImage (string)
A blogger can have one or more blogs while one blog must be related to only one blogger.
I would like to have a view table on my webpage as the following:
Blogger Name |
| Blog Title | Blog Image |
|
Noris Gang |
| Virus | virus.jpg |
|
Noris Gang |
| Desktops | desktop.jpg |
|
Gauthier |
| Books | books.png |
|
John Leon |
| NNNMHJhjdhj | Nmbj.jpg |
|
I'm using MVC 4 (or at least 3).
Thanks for your help.