Instance Property

entities

The entities in the model.

Declaration

@property(strong) NSArray<NSEntityDescription *> *entities;

Discussion

Entities are instances of NSEntityDescription.

Special Considerations

Setting the entities for an object model raises an exception if the object model has been used by an object graph manager.

See Also

Inspecting Entities and Configurations

entitiesByName

The entities of the model, keyed by name.

configurations

All the available configuration names of the model.

- entitiesForConfiguration:

Returns the entities of the model for a specified configuration.

- setEntities:forConfiguration:

Associates the specified entities with the model using the given configuration name.