Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 696149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:02:00+00:00 2026-05-14T03:02:00+00:00

I have a few classes: Article ——- Content ID Magazine ——– Name Code And

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:02:01+00:00Added an answer on May 14, 2026 at 3:02 am

    I am not entirely sure about your question, however, if you might need accessign Magazines in which a single article was published more than accessing articles in one magazine, then you might reverse the association. If that is not the case, you might use two associations, which will use much disk space and some work during creation and update of Articles or Magazines. The other way is to compute the other association on demand, which might include iteration over the whole set of Articles or Magazines, which might be reasonable e.g. when there are a few Magazines. However, this can be enhanced using memoization or caching. There is much written in literature about handling 1:n and m:n associations, the solution depends on your concrete setting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few classes, such as those that outline database table structure or
I have a very small entity framework setup containing only a few related classes/tables
I need to create module in Magento which will have few database tables. One
i have a few classes that i am trying to move to using generics
I have a few classes which do nothing except in their constructors/destructors. Here's an
I have a few classes such that: public class XMLStatusMessage extends XMLMessage {} public
I have a few model classes with basic one-to-many relationships. For example, a book
I need to convert several Java classes to C#, but I have faced few
I have a few domain classes, and I want to be able to populate
I've gotten to the point where I have made a few classes that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.