Instance Property


A dictionary of the receiver’s fetch request templates, keyed by name.


var fetchRequestTemplatesByName: [String : NSFetchRequest<NSFetchRequestResult>] { get }


If the template contains a predicate with substitution variables, you should instead use fetchRequestFromTemplate(withName:substitutionVariables:) to create a new fetch request.

See Also

Getting Fetch Request Templates

func fetchRequestFromTemplate(withName: String, substitutionVariables: [String : Any]) -> NSFetchRequest<NSFetchRequestResult>?

Returns a copy of the fetch request template with the variables substituted by values from the substitutions dictionary.

func setFetchRequestTemplate(NSFetchRequest<NSFetchRequestResult>?, forName: String)

Associates the specified fetch request with the receiver using the given name.