entity
TypeScriptstatic entity(entityName: string, context: NSManagedObjectContext): (NSEntityDescription) | nullSwift declarationclass func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?class · iOS 3.0+ · SDK 27.1
class NSEntityDescriptionstatic entity(entityName: string, context: NSManagedObjectContext): (NSEntityDescription) | nullSwift declarationclass func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?static insertNewObject(entityName: string, context: NSManagedObjectContext): NSManagedObjectSwift declarationclass func insertNewObject(forEntityName entityName: String, into context: NSManagedObjectContext) -> NSManagedObjectstatic init(): NSEntityDescriptionSwift declarationinit()isKindOf(entity: NSEntityDescription): booleanSwift declarationfunc isKindOf(entity: NSEntityDescription) -> Boolrelationships(entity: NSEntityDescription): Array<NSRelationshipDescription>Swift declarationfunc relationships(forDestination entity: NSEntityDescription) -> [NSRelationshipDescription]get isAbstract(): booleanSwift declarationvar isAbstract: Bool { get set }set isAbstract(value: boolean)Swift declarationvar isAbstract: Bool { get set }get attributesByName(): Record<string, NSAttributeDescription>Swift declarationvar attributesByName: [String : NSAttributeDescription] { get }get compoundIndexes(): Array<Array<unknown>>Swift declarationvar compoundIndexes: [[Any]] { get set }set compoundIndexes(value: Array<Array<unknown>>)Swift declarationvar compoundIndexes: [[Any]] { get set }get coreSpotlightDisplayNameExpression(): _Foundation_NSExpressionSwift declarationvar coreSpotlightDisplayNameExpression: NSExpression { get set }set coreSpotlightDisplayNameExpression(value: _Foundation_NSExpression)Swift declarationvar coreSpotlightDisplayNameExpression: NSExpression { get set }get indexes(): Array<NSFetchIndexDescription>Swift declarationvar indexes: [NSFetchIndexDescription] { get set }set indexes(value: Array<NSFetchIndexDescription>)Swift declarationvar indexes: [NSFetchIndexDescription] { get set }get managedObjectClassName(): (string) | nullSwift declarationvar managedObjectClassName: String! { get set }set managedObjectClassName(value: (string) | null)Swift declarationvar managedObjectClassName: String! { get set }get managedObjectModel(): NSManagedObjectModelSwift declarationunowned(unsafe) var managedObjectModel: NSManagedObjectModel { get }get name(): (string) | nullSwift declarationvar name: String? { get set }set name(value: (string) | null)Swift declarationvar name: String? { get set }get properties(): Array<NSPropertyDescription>Swift declarationvar properties: [NSPropertyDescription] { get set }set properties(value: Array<NSPropertyDescription>)Swift declarationvar properties: [NSPropertyDescription] { get set }get propertiesByName(): Record<string, NSPropertyDescription>Swift declarationvar propertiesByName: [String : NSPropertyDescription] { get }get relationshipsByName(): Record<string, NSRelationshipDescription>Swift declarationvar relationshipsByName: [String : NSRelationshipDescription] { get }get renamingIdentifier(): (string) | nullSwift declarationvar renamingIdentifier: String? { get set }set renamingIdentifier(value: (string) | null)Swift declarationvar renamingIdentifier: String? { get set }get subentities(): Array<NSEntityDescription>Swift declarationvar subentities: [NSEntityDescription] { get set }set subentities(value: Array<NSEntityDescription>)Swift declarationvar subentities: [NSEntityDescription] { get set }get subentitiesByName(): Record<string, NSEntityDescription>Swift declarationvar subentitiesByName: [String : NSEntityDescription] { get }get superentity(): (NSEntityDescription) | nullSwift declarationunowned(unsafe) var superentity: NSEntityDescription? { get }get uniquenessConstraints(): Array<Array<unknown>>Swift declarationvar uniquenessConstraints: [[Any]] { get set }set uniquenessConstraints(value: Array<Array<unknown>>)Swift declarationvar uniquenessConstraints: [[Any]] { get set }get userInfo(): (NativeMap<unknown, unknown>) | nullSwift declarationvar userInfo: [AnyHashable : Any]? { get set }set userInfo(value: (NativeMap<unknown, unknown>) | null)Swift declarationvar userInfo: [AnyHashable : Any]? { get set }get versionHash(): ArrayBufferSwift declarationvar versionHash: Data { get }get versionHashModifier(): (string) | nullSwift declarationvar versionHashModifier: String? { get set }set versionHashModifier(value: (string) | null)Swift declarationvar versionHashModifier: String? { get set }No declarations were skipped in this snapshot.