-
The associated
NSManagedObject
entity classDeclaration
Swift
@objc public var entityClass: NSManagedObject.Type { get }
-
The
NSPersistentStore
configuration name to associate objects from. May contain aString
to pertain to a named configuration, ornil
to pertain to the default configurationDeclaration
Swift
@objc public var configuration: ModelConfiguration { get }
-
Initializes a
CSInto
clause with the specified entity class.MyPersonEntity *person = [transaction createInto: CSIntoClass([MyPersonEntity class])];
Declaration
Swift
@objc public convenience init(entityClass: NSManagedObject.Type)
Parameters
entityClass
the
NSManagedObject
class type to be created -
Initializes a
CSInto
clause with the specified configuration.MyPersonEntity *person = [transaction createInto: CSIntoClass([MyPersonEntity class])];
Declaration
Swift
@objc public convenience init(entityClass: NSManagedObject.Type, configuration: ModelConfiguration)
Parameters
entityClass
the
NSManagedObject
class type to be createdconfiguration
the
NSPersistentStore
configuration name to associate the object to. This parameter is required if multiple configurations contain the createdNSManagedObject
‘s entity type. Set tonil
to use the default configuration.