編輯

共用方式為


CoreData Namespace

The CoreData namespace provides object-graph serialization and persistence.

Classes

NSAsynchronousFetchRequest

Class that represents an asynchronous fetch request.

NSAsynchronousFetchResult

Class that represents the result of an asynchronous fetch request.

NSAtomicStore

A base class for 'atomic stores,' which can be used to store custom file formats in Core Data.

NSAtomicStoreCacheNode

Represents a single record in a Core Data atomic store.

NSAttributeDescription

Describes an attribute of an NSEntityDescription object.

NSBatchDeleteRequest

A NSPersistentStoreRequest that performs a batch delete.

NSBatchDeleteResult

The results of a T:CoreData.NSBatchDeleteQuery.

NSBatchUpdateRequest

Class that represents a request for a batch update.

NSBatchUpdateResult

Class that represents the result of an batch update request.

NSConstraintConflict
NSCoreDataCoreSpotlightDelegate
NSEntityDescription

Describes the value relationships between an in-memory object and its persistent representation.

NSEntityMapping

Specifies the mapping between an in-memory object and its persistent representation.

NSEntityMigrationPolicy

Customizes the migration process during entity mapping.

NSExpressionDescription

Descriptor for a fetch result column that does not appear in the source, such as a sum or a minimum of a column in the source.

NSFetchedPropertyDescription

Holds "fetched properties," that allow the developer to specify related objects via a weak unidirectional relationship in a fetch request.

NSFetchedResultsController

Controller object for Core Data fetch requests; generally used to provide data for a UITableView.

NSFetchedResultsControllerDelegate

Delegate object for NSFetchedResultsController objects, provides methods relating to fetch results adding, removing, moving, or updating objects.

NSFetchedResultsControllerDelegate_Extensions

Extension methods to the INSFetchedResultsControllerDelegate interface to support all the methods from the NSFetchedResultsControllerDelegate protocol.

NSFetchedResultsSectionInfo

Holds data relating to section objects created by a NSFetchedResultsController.

NSFetchIndexDescription
NSFetchIndexElementDescription
NSFetchRequest

Holds search criteria used to retrieve data from a persistent store.

NSFetchRequestExpression

Represents an expression that fetches results in a managed object context.

NSIncrementalStore

Supports the use of persistent stores that are loaded and saved incrementally, allowing for larger and shared datasets.

NSIncrementalStoreNode

A concrete class that represents basic nodes in a NSIncrementalStore.

NSManagedObject

A class that can be managed by a managed object context. Should have a correspondence to domain model classes, even if they are not direct subtypes.

NSManagedObjectChangeEventArgs

Provides data for the event.

NSManagedObjectContext

A collection of related managed objects that create aninternally-consistent view of one or more persistent stores.

NSManagedObjectContext.Notifications

Notification posted by the NSManagedObjectContext class.

NSManagedObjectID

A universal identifier of a Core Data managed object. Works across object contexts and applications.

NSManagedObjectModel

A schema describing a graph of entities used by the application.

NSMappingModel

Holds mappings between a source and destination managed object model.

NSMergeConflict

Models conflicts that can occur when saving changes.

NSMergePolicy

Strategy for resolving conflicts between in-memory objects and those in persistent stores.

NSMigrationManager

Allows migration from one persistent store to another.

NSPersistentContainer

Creates and manages a Core Data stack.

NSPersistentHistoryChange
NSPersistentHistoryChangeRequest
NSPersistentHistoryResult
NSPersistentHistoryToken
NSPersistentHistoryTransaction
NSPersistentStore

Abstract base class for Core Data persistent stores.

NSPersistentStoreAsynchronousResult

Class that represents the results of an aysnchronous request that was made of a persistent data store.

NSPersistentStoreCoordinator

Mediates between a persistent store and the managed object context or contexts.

NSPersistentStoreCoordinator.Notifications

Notification posted by the NSPersistentStoreCoordinator class.

NSPersistentStoreCoordinatorStoreChangeEventArgs

Provides data for the event.

NSPersistentStoreDescription

Descriptor for a persistent store inside a persistent container.

NSPersistentStoreRequest

Criteria used to retrieve data from or save data in a persistent store.

NSPersistentStoreResult

Class that represents the result of request that was made of a persistent data store.

NSPropertyDescription

Defines properties of an entity in a managed objectmodel. The equivalent of an instance property.

NSPropertyMapping

Maps a property between source and destination entities.

NSQueryGenerationToken

Controls whether and how a managed object context pins itself to database transactions.

NSRelationshipDescription

Describes the relationships of a NSEntityDescription object.

NSSaveChangesRequest

A collection of changes to be made by an object store.

UserInfo

Contains Core Data error information.

UserInfoKeys

Contains keys for error information that Core Data stores in a dictionary.

Interfaces

INSFetchedResultsControllerDelegate

Interface representing the required methods (if any) of the protocol NSFetchedResultsControllerDelegate.

INSFetchedResultsSectionInfo

Interface representing the required methods (if any) of the protocol NSFetchedResultsSectionInfo.

INSFetchRequestResult

Enums

MigrationErrorType

Enumerates error codes that can be encountered while migrating stores.

NSAttributeType

An enumeration whose values define the valid types for NSAttributeType objects.

NSBatchDeleteRequestResultType

Enumerates the form of the result of a NSBatchDeleteRequest.

NSBatchUpdateRequestResultType

Enumerates the kind of results that can be returned from a batched update request.

NSDeleteRule

An enumeration whose values specify cascade options after deletion of an object.

NSEntityMappingType

Enumerates specific types of entity mapping.

NSFetchedResultsChangeType

Enumerates kinds of batch requests.

NSFetchIndexElementType

Enumerates index types.

NSFetchRequestResultType

Enumerates possible result types from a fetch.

NSManagedObjectContextConcurrencyType

Enumerates types of concurrenty patterns that can be used by a NSManagedObjectContext.

NSMergePolicyType

Enumerates policies for merging.

NSPersistentHistoryChangeType
NSPersistentHistoryResultType
NSPersistentStoreRequestType

Constants defining the types of a fetch request.

NSPersistentStoreUbiquitousTransitionType

Enumerates valid keys for the user information dictionary used in StoresWillChangeNotification and StoresDidChangeNotification.

NSSnapshotEventType

Enumerates reasons that a managed object may need to reinitialize certain values when it awakes.

ObjectGraphManagementErrorType

Enumerates error codes that can be encountered while working with object graphs.

PersistentStoreErrorType

Enumerates error codes that can be encountered while working with persistent stores.

ValidationErrorType

Enumerates errors that can be encountered during validation.

Remarks

In general, Xamarin developers should prefer the use of portable database technologies for persistence.