-
The associated
NSManagedObject
entity classDeclaration
Swift
@objc public var entityClass: AnyClass { get }
-
The
NSPersistentStore
configuration names to associate objects from. May containNSString
instances to pertain to named configurations, orNSNull
to pertain to the default configurationDeclaration
Swift
@objc public var configurations: [Any]? { get }
-
Initializes a
CSFrom
clause with the specified entity class.MyPersonEntity *people = [transaction fetchAllFrom:CSFromClass([MyPersonEntity class])];
Declaration
Swift
@objc public convenience init(entityClass: NSManagedObject.Type)
Parameters
entityClass
the
NSManagedObject
class type to be created -
Initializes a
CSFrom
clause with the specified configurations.MyPersonEntity *people = [transaction fetchAllFrom: CSFromClass([MyPersonEntity class], @"Config1")];
Declaration
Swift
@objc public convenience init(entityClass: NSManagedObject.Type, configuration: Any)
Parameters
entityClass
the associated
NSManagedObject
entity classconfiguration
the
NSPersistentStore
configuration name to associate objects from. This parameter is required if multiple configurations contain the createdNSManagedObject
‘s entity type. Set to[NSNull null]
to use the default configuration. -
Initializes a
CSFrom
clause with the specified configurations.MyPersonEntity *people = [transaction fetchAllFrom: CSFromClass([MyPersonEntity class], @[[NSNull null], @"Config1"])];
Declaration
Swift
@objc public convenience init(entityClass: NSManagedObject.Type, configurations: [Any])
Parameters
entityClass
the associated
NSManagedObject
entity classconfigurations
an array of the
NSPersistentStore
configuration names to associate objects from. This parameter is required if multiple configurations contain the createdNSManagedObject
‘s entity type. Set to[NSNull null]
to use the default configuration.