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 6787991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:25:54+00:00 2026-05-26T17:25:54+00:00

I have determined a relational model makes more sense for a particular collection in

  • 0

I have determined a relational model makes more sense for a particular collection in a database. The problem is, the domain model was originally started with an embedded model and there is a large amount of UI code that expects it to be in this form. Updating the database schema isn’t an issue, but I’m curious if there is any easy way around remodeling the C# domain objects to a more old-fashioned relational model. I’ve started writing mappers (with AutoMapper) between version one and version two (see classes below), but it’s getting messy really quick.

Below is some fictitious code that outlines a similar domain model.

// Existing
class MyClass
{
    List<Event> Events { get; set; }
    List<Movie> Movies { get; set; }
}

// How it should have been modeled
class MyClass
{
    List<int> Events { get; set; } // Stores Event IDs
    List<int> Movies { get; set; } // Stores Movie IDs
}

The database will have to be normalized.

If I have to remodel the domain model, that’s fine; I just want to feel comfortable I’ve exhausted other possibilities that might save time. Is there an easy solution to this problem I’m overlooking?

  • 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-26T17:25:55+00:00Added an answer on May 26, 2026 at 5:25 pm

    Given the specific problem, it seemed the only two options I could justify were the two I mentioned in my initial post (map the data manually or change my domain object). Ultimately, for me, the path of least resistance was to map the data manually. I appreciate the suggestion by pjvds, but I couldn’t justify switching to a new ORM at this stage of the project considering so many other things work better with the C# MongoDB driver and also considering a mapper isn’t necessary for the other portions of our database.

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

Sidebar

Related Questions

I am design and EMR. I have determined the central object to the domain
I have a custom entity in a relational database that I have mapped to
I have a coordinate region that I have determined contains the limits of what
My client is determined to have a page at /nfm&t so I made a
I have code that adds a pre-determined HTML snippet into a pre-determined <div> element
We have a vb.net application where we have implemented multithreading. We determined that we
I've a window that will have an unknown amount of text fields, determined by
I have a quick question regarding a database that I am designing and making
We have determined it's too difficult for us to maintain the bulk of javascript
UPDATE: I have determined that the SQLClient code times out on the first call,

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.