Instance Method

defaultFetchRequest()

Returns the default fetch request used by the receiver.

Declaration

func defaultFetchRequest() -> NSFetchRequest<NSFetchRequestResult>

Return Value

The default NSFetchResult used by the receiver.

See Also

Core Data support

var entityName: String?

The entity name used by the receiver to create new objects.

func fetch(Any?)

Causes the receiver to fetch the data objects specified by the entity name and fetch predicate.

var usesLazyFetching: Bool

A Boolean that indicates whether the receiver uses lazy fetching.

var fetchPredicate: NSPredicate?

The receiver’s fetch predicate.

var managedObjectContext: NSManagedObjectContext?

The receiver’s managed object context.

func fetch(with: NSFetchRequest<NSFetchRequestResult>?, merge: Bool)

Subclasses should override this method to customize a fetch request, for example to specify fetch limits.