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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:24:49+00:00 2026-05-24T08:24:49+00:00

I am trying to create two tables within the same sqlite database. Now, this

  • 0

I am trying to create two tables within the same sqlite database. Now, this two managedObjectModels don’t run in the same instance. Let me explain…I run the application once, and I create the managedObject in the persistent store, programmatically. Let say I have 5 attributes for that one. Then I run it again and I create a new managedObject in the persistent store, but this time I only use 3 attributes…how can I make this possible? Right now it crashes because the amount of attributes don’t match.

Regards and thanks!

  • 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-24T08:24:50+00:00Added an answer on May 24, 2026 at 8:24 am

    The simplest answer is to not create your data model programmatically. It should be created at design-time and not modified. Instead, you should design your data model to be flexible enough to meet your needs. For instance, instead of creating one entity with a variable number of attributes, create two entities, one with a one-to-many relationship to the other, and store what information would have gone in your variable number of attributes there.

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

Sidebar

Related Questions

I am getting an error when trying to create a relationship within two tables
I have two tables that I'm trying to create a relationship between so I
I have to create trigger in my SQLite database. There are 3 tables in
In C (NOT C++), I am trying to create two string tables that contain
I'm trying to follow the django tutorial and create two tables where the unique
I'm trying to create a Union between two tables, using HQL (Hibernate Query Language).
i'm trying to create a multilevel list. I have two tables 'State' and 'City'.
I'm trying to create a table with two columns comprising the primary key in
I am trying to create a unique constraint on two fields in a table.
I'm trying to create two ASP.NET Membership login pages for an ASP.NET website I'm

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.