From 8ed6a78609fae7f6a81600efe2661fa951b48c14 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Mon, 24 Aug 2015 17:36:40 +0900 Subject: [PATCH] CoreStore adapter method --- CoreStore/Setting Up/CoreStore+Setup.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CoreStore/Setting Up/CoreStore+Setup.swift b/CoreStore/Setting Up/CoreStore+Setup.swift index 11b42cf..c54c387 100644 --- a/CoreStore/Setting Up/CoreStore+Setup.swift +++ b/CoreStore/Setting Up/CoreStore+Setup.swift @@ -43,9 +43,17 @@ public extension CoreStore { /** Returns the entity name-to-class type mapping from the `defaultStack`'s model. */ - public static var entitiesByName: [String: NSManagedObject.Type] { + public static var entityTypesByName: [String: NSManagedObject.Type] { - return self.defaultStack.entitiesByName + return self.defaultStack.entityTypesByName + } + + /** + Returns the `NSEntityDescription` for the specified `NSManagedObject` subclass from `defaultStack`'s model. + */ + public static func entityDescriptionForType(type: NSManagedObject.Type) -> NSEntityDescription? { + + return self.defaultStack.entityDescriptionForType(type) } /**