Modelling class relations

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/04/01 22:43 UTC
Read the original article Hit count: 360

Filed under:
|

Hi,

I have a few classes:

Article
-------
Content
ID

Magazine
--------
Name
Code

And 3 tables in database:

Articles
Magazines
ArticlesInMagazines (two fields: IDArticle and CodeMagazine)

In my app, I've got a module to manage Articles, and a datagridview to relate their associated magazines

DataGridView has twofields:

MagazineCode
IsPublished (indicates articles which have been published in this magazine).

The same article can be in many magazines (1:n)

How would you implement on model ?

Article have to has a field : List ?? I am concerned because Magazine associates Articles

© Stack Overflow or respective owner

Related posts about c#

Related posts about modeling