new auto-commit transaction methods

This commit is contained in:
John Estropia
2017-03-31 19:44:18 +09:00
parent d72d1afe8b
commit 97d7a276fe
39 changed files with 3739 additions and 3232 deletions

View File

@@ -159,5 +159,11 @@ public protocol FetchableSource: class {
/**
The internal `NSManagedObjectContext` managed by this `FetchableSource`. Using this context directly should typically be avoided, and is provided by CoreStore only for extremely specialized cases.
*/
func unsafeContext() -> NSManagedObjectContext
// MARK: Deprecated
@available(*, deprecated: 4.0.0, renamed: "unsafeContext()")
func internalContext() -> NSManagedObjectContext
}