Instance Property


The persistent store descriptions used to create the persistent stores referenced by this persistent container.


var persistentStoreDescriptions: [NSPersistentStoreDescription] { get set }


If you want to override the type (or types) of persistent store(s) used by the persistent container, you can set this property with an array of NSPersistentStoreDescription objects.

If you will be configuring custom persistent store descriptions, you must set this property before calling loadPersistentStores(completionHandler:).

See Also

Configuring a Container

func loadPersistentStores(completionHandler: (NSPersistentStoreDescription, Error?) -> Void)

Instructs the persistent container to load the persistent stores.

var managedObjectModel: NSManagedObjectModel

The model associated with this persistent container. (read-only)

var name: String

The name of this persistent container. (read-only)

var persistentStoreCoordinator: NSPersistentStoreCoordinator

The persistent store coordinator associated with this persistent container. (read-only)