Modeling Class Relations

I have several classes:

Article
-------
Content
ID

Magazine
--------
Name
Code

And 3 tables in the database:

Articles
Magazines
ArticlesInMagazines (two fields: IDArticle and CodeMagazine)

In my application, I have a module for managing articles, and datagridview is to link related magazines.

DataGridView has two fields:

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 the model?

The article should have a field: List ?? It bothers me that the magazine associates articles

+3
source share
1 answer

, , accessign, , , . , , . - , , , . . memoization . , 1: n m: n, .

+1

Source: https://habr.com/ru/post/1739115/


All Articles