Previous: , Up: Classes   [Contents][Index]


23 EOGenericRecord class

23.1 overview

EOGeneric record represents an actual row in a table being the default enterprise object it contains no custom business logic and is accessible solely through key value coding.

Where an entity represents the description of the table. It’s columns and types. enterprise objects represent the data contained in the table.

EOGenericRecords are generally created with a reference to an entity. They export as keys the class properties of the entity, for access and modification.

If you have an EOGenericRecord from the ’authors’ entity of our example model you could set the authors name as so. See Example model file.

[anAuthor takeValue:@"Anonymous" forKey:@"name"];

And retrieve the author name with:

[anAuthor valueForKey:@"name"];