How to get a list of existing entities (tables) for a particular schema (managed object model) The concept has begun implementing and is stuck with these points, please
something like: SELECT COUNT (*) from info_schema.tables WHERE table_schema = 'dbName';
Thanks
You should read. To obtain organizations for a specific or You can read more in. It seems that you are coming from a SQL background (like I was). Core data has many concepts that are different - sometimes to get better, once you understand them, sometimes you need more work than a simple SQL statement, I think SQL is important to access core data without "stuff" and behave in the same way as if you are using a database for the first time - it will help to avoid frustration. NSManagedObjectModel , you will use one of the following (assuming that you have
NSManagedObjectModel named
objectModel Is):
NSArray * myEntities = [objects model entities]; // The array of all entities in the model
NSDictionary * myEntities = [Object Model Entry Binam];
No comments:
Post a Comment