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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:43:47+00:00 2026-05-21T05:43:47+00:00

First of all I want to show how I made this in SQL: Both

  • 0

First of all I want to show how I made this in SQL:

enter image description here

Both the location and environment table will never contain more than those four rows. Each log can only be associated with 4 rows.

What I don’t understand is how do I even start writing code that will take whatever the user has chosen, based on state switches etc in my UI and persist this?

Because when the user are done I want to store a “log-record”, and the log-record may have location and environment rows associated with it. And what happen when the user let say, choose all the location rows, four times a row….does it add the location to the location “entity” every time? Would I end up with a lot of duplicated data? I would appreciate any help that can show me how to do this. Thank you!

  • 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-21T05:43:48+00:00Added an answer on May 21, 2026 at 5:43 am

    Looks like you need three entities. You’ll have Location and Environment entities that have whichever attributes they need, and a Log entity that has relationship with both Environment and Location. I think you’re asking if instances of Location and Environment that happen to be the same will be duplicated in the core data store, or if multiple Log instances will relate to the same Location and Environment instances. Is that right? Answer: It’s up to you. Say you want to save a Location instance that has a particular set of attributes. You could first search for one that has that exact set of attributes and associate it with your Log instance, or you could just create a new Location instance and not worry about the duplication. If you’re storing zillions of these Log entries, the first plan might save a lot of space. If you’re not saving them all that often, and particularly if the user can go back and change the data associated with a Log instance, you might want to use separate instances even if they happen to be the same.

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

Sidebar

Related Questions

Fist of all I want to show you my code/storyboard: This is my storyboard:
First of all, I don't want to use a join because that will make
First of all I don't know if this is the right approach. I want
First of all I want to link you guys to the JSFiddle I've made
First of all I want to mention two things, One: My code isn't perfect
First of all I want to apologize for my bad English. I have a
First of all i want to say that i have searched each and every
First of all i want to say that I'm still a beginner in ASP.NET
First of all, I want to make something clear before I get yelled at:
First of all, i want to apologize for my poor English for it is

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.