Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

MVC: Create a view which populates two (or more) joined tables in a single view table

$
0
0

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.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>