This section contains design patterns that deal with accessing model properties or performing queries on them. These Retrieval patterns can help you design better ways to access frequently needed information.
Retrieval patterns
Pattern — property field
Problem: Models have derived attributes that are implemented as methods. However, these attributes should not be persisted to the database.
Solution: Use the property decorator on such methods.
Problem details
Model fields store per-instance attributes, such as first name, last name, birthday, and so on. They are...