Contents

init(entityName:)

Returns a fetch request configured with a given entity name.

Declaration

convenience init(entityName: String)

Parameters

  • entityName:

    The name of the entity to fetch.

Return Value

A fetch request configured to fetch the entity named entityName.

Discussion

This method provides a convenient way to configure the entity for a fetch request without having to retrieve an NSEntityDescription object. When the fetch is executed, the request uses the managed object context to find the entity with the given name. The model associated with the context’s persistent store coordinator must contain an entity named entityName.

See Also

Related Documentation

Managing the Fetch Request’s Entity