Instance Method

setEntities:forConfiguration:

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

Declaration

- (void)setEntities:(NSArray<NSEntityDescription *> *)entities forConfiguration:(NSString *)configuration;

Parameters

entities

An array of instances of NSEntityDescription.

configuration

A name for the configuration.

Discussion

This method raises an exception if the receiver has been used by an object graph manager.

See Also

Inspecting Entities and Configurations

entities

The entities in the model.

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.