Modelling class realtions
Posted
by phenevo
on Stack Overflow
See other posts from Stack Overflow
or by phenevo
Published on 2010-03-30T08:50:17Z
Indexed on
2010/03/30
8:53 UTC
Read the original article
Hit count: 655
Hi,
I have a few classes:
Article:
Content,
ID,
Magazine:
Name
Code,
And 3 tables in database:
Articles, Magazines and ArticlesinMagazines (two fields: IDArticle and CodeMagazine)
In App, I've got module to manage Articles, and datagridview to relate their with magazines
DataGridView has twofields: MagazineCode, IsPublished.
The same article can be in many magazines (1:n)
How would you implement on model ?
Article have to has a field : List ?? I concern because Magazine associates articles
© Stack Overflow or respective owner