here we go

This commit is contained in:
John Rommel Estropia
2014-12-07 21:38:54 +09:00
parent 25bc4a189f
commit daa5e64ae0
18 changed files with 1490 additions and 12 deletions

View File

@@ -0,0 +1,30 @@
//
// QueryDescriptor.swift
// HardcoreData
//
// Created by John Rommel Estropia on 14/11/16.
// Copyright (c) 2014 John Rommel Estropia. All rights reserved.
//
import Foundation
import CoreData
public struct QueryDescriptor<T: NSManagedObject> {
public var entityName: String {
return self.entity.entityName
}
// MARK: Internal
internal init(entity: T.Type) {
self.entity = entity
}
// MARK: Private
private let entity: T.Type
private var predicate: NSPredicate?
private var sortDescriptors: [NSSortDescriptor]?
}