mapping-model Questions

3

If I want to use a custom migration policy for a given entity, I believe I have to prefix the class name by the product module name, as shown on the following image: How can I manage to handle m...
Irrevocable asked 16/1, 2018 at 15:14

6

Solved

The Background A Cocoa Non Document Core Data project with two Managed Object Models. Model 1 stays the same. Model 2 has changed, so I want to migrate the store. I've created a new version by D...
Lubric asked 22/3, 2010 at 12:19

8

Solved

I started using Core Data for iPhone development. I started out by creating a very simple entity (called Evaluation) with just one string property (called evaluationTopic). I had following code for...
Bently asked 7/7, 2009 at 9:16

2

Solved

There are similar questions here and here, although my use-case is a little different. I have an object called uniqueLists which looks like this: $scope.uniqueLists - { name: [ 'string1', 'str...
Cantor asked 28/7, 2013 at 3:43

4

Solved

I am trying to do a migration I have 2 versions of model 1.xcdatamodel 2.xcdatamodel I created a mapping model from version 1 to 2 1to2.xcmappingmodel The problem is that it can't find the m...

1

Solved

With Core Data Migration Debug enabled, when performing a migration I see three entities (2, 3, 4) with changed hashes, as expected. Entity 1 doesn't change and is for illustration. Store metadata...
Kinsey asked 5/6, 2012 at 9:0

2

I've updated the model of an existing iPhone app in some simple ways (remove attribute, add attribute, remove index), and can use automatic lightweight migration to migrate the persistent store. D...
Fernandofernas asked 29/3, 2010 at 1:40

1

Solved

In my project I have following DomainModel. public class Login { public Guid Id { get; set; } public Login CreatedBy {get; set; } } I am using fluent configuration as below: modelBuilder.Enti...
Freewheel asked 16/7, 2011 at 11:24

4

Solved

I followed the guide found here: http://www.timisted.net/blog/archive/core-data-migration/ but keep getting "Can't find mapping model for migration" when I start up the app with the new model. I've...
Wellspring asked 20/3, 2011 at 16:45

1

Solved

I currently have a cardType attribute on my entity, which in the old model could be "Math", "Image" or "Text". In the new model, I'll be using just "Math" and "Text" and also have a hasImage attrib...
Redbreast asked 20/3, 2011 at 3:28

1

Solved

I'm trying to migrate an iPhone/iPad sqlite store of about 11Mb. It has around thirty different entities, all quite heavily interrelated. On a 3GS, it takes quite some time. Even a lightweight mi...
Jewish asked 15/12, 2010 at 15:56

1

Solved

I just started with iPhone core data and I ran into a problem in lightweight migration. I added two new fields to my old model Regenerated the model class files Made the new model version as curr...
Halfdan asked 20/1, 2011 at 10:21

1

I've got about 4 different versions of my data model now, and every one except the last one has been just a minor change using automatic lightweight migration. For this latest model, I need to do a...
Voguish asked 9/11, 2010 at 18:54

1

Solved

I am getting a strange crash from some of my beta testers that I am having trouble with. The symbolicated crash reports indicate that the crash is occurring in the simple allocation of a controller...

1

Solved

I have a cocoa application using core-data, which is now at the 4th version of its managed object model. My managed object model contains abstract entities but so far I have managed to get migrat...
Jeramie asked 25/12, 2010 at 23:22

1

Solved

So I created a new version of my data model, and made a previously optional field non-optional (giving it a default value). According to the documentation, this should mean my migration is eligible...
Hanford asked 25/10, 2010 at 3:51

2

Solved

For performance reasons, i want to set the Indexed Attribute to some of my entities. I created a new core data model version to perform the changes. Core Data detects the changes and migrates my mo...
Mammary asked 1/2, 2010 at 17:44

1

Solved

I have a migration where I'm moving fields from one entity into another entity which is a child of an abstract entity. My model has an entity, Thing, which is 1->M to an abstract entity, AbstractWi...
Actinology asked 22/6, 2010 at 18:22

2

I have an iPhone app that uses Core Data. I did an update and used Lightweight Migration to go from V1 to V2 of my MOM (Managed Object Model). This worked perfectly. What happens when I want to g...
Raquel asked 12/10, 2009 at 22:43

1

Solved

My situation is similar to this question. I am using lightweight migration with the following code, fairly vanilla from Apple docs and other SO threads. It runs upon app startup when initializing t...

1

Solved

It seems like this should be straight forward but I have not been able to find a good example of it. I have a simple Core Data entity that I want to split into two separate entities. Apple's docume...
Crosspollinate asked 10/12, 2009 at 23:21
1

© 2022 - 2024 — McMap. All rights reserved.