mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2026-10-14 06:55:33 +00:00
♻️ Refactored CoreData access
This commit is contained in:
1 parent
f50ba8f19d
commit
b689a7bbf1
10 files changed
+132
-72
No files matched your search
@@ -9,6 +9,7 @@ import Foundation
|
||||
import CoreData
|
||||
|
||||
class UtilityFunctions {
|
||||
// DEPRECATED, replaced by the respective getSpecified() method of each CoreData object
|
||||
public class func getCoreDataObject(entity: String, sortDescriptors: [NSSortDescriptor] = [], searchPredicate: NSPredicate? = nil) -> [NSManagedObject]{
|
||||
let managedContext =
|
||||
PersistenceController.shared.context
|
||||
|
||||
Reference in new issue
Block a user