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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:36:33+00:00 2026-05-21T02:36:33+00:00

I want to make an entity for a workout Routine. I’ll name the entity

  • 0

I want to make an entity for a workout Routine.

I’ll name the entity “Routine”. The user is prompted with a UIAlert with text prompt to enter a name for each of the days (for example 1) chest day, 2) back day, 3) legs day, etc.). And within each of these days will be a list of exercises they choose to be done that day.

I have all the exercises stored in a dictionary within a .plist right now.

I need help structuring the attributes, etc for Routines.

I’m thinking having an attribute for Day (where they name the day) and then thats where I’m stuck. I would assume to use a dictionary or an array to hold that day’s exercises but this can’t be done in Core Data.

  • 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-21T02:36:34+00:00Added an answer on May 21, 2026 at 2:36 am

    Don’t think in terms of dictionaries or array, think in terms of objects. The things you’re thinking of putting in your dict/array are an actual exercise being performed as part of a day’s routine, right? So you need an internal name for that; “exercise” doesn’t really work because that’s the description of the thing you do, not the doing, and “rep” is just one. Edit: You’ve used the word “Set,” which makes sense, so I’ll use that too.

    So your data model might look like:

    Day <----->> Set
    

    where < is a “to one” relationship and >> is a “to many” relationship. That’s how you get arrays and dictionaries, effectively, by understanding that there’s one object that has a relationship to multiple copies of another object.

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

Sidebar

Related Questions

I want to make an Entity for Location with properties: latitude & longitude. Then,
I havea simple EF Model with a Test entity and I want to make
I want to make a view helper for my whole website. Which fetches entity_names
I have an entity called Client, and each Client can have multiple Properties. CoreData
I'd really like to give Entity Framework 4 Code First CTP a try with
I am using the Entity framework for the first time, and would like to
In my EF4 EntityModel I have an entity named USERS. USERS have the common
I have a number of tables that together make up a Test that somebody
We are trying to build a JSF application with JPA. For now, we want
I prefer working with DateTime.MinValue , even if I use SqlServer as backend. 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.