Both depend on each other throughout the app. Repository retrieves Model. Model accesses Repository. Then other parts of the app need a Repository to create context for a Model again.
Instead of always creating new Repository instances it would be much more convenient and performance friendly to just pass the Repository a Model was created by around with the Model.
Both depend on each other throughout the app. Repository retrieves Model. Model accesses Repository. Then other parts of the app need a Repository to create context for a Model again.
Instead of always creating new Repository instances it would be much more convenient and performance friendly to just pass the Repository a Model was created by around with the Model.