You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to expose the following question:
Could it be useful to have an IAPPLICATIONDBCONTEXT interface in the Application project (I believe) project? I understand that it would introduce a dependency with Microsoft.entityFrameWorkcore and that a repository (Ardalis) approach has decided to access data.
And I was wondering with this approach some logics even a little more complex validation (Request Validator) would become a bit too verbose / repetitive and full of repositories ... in case it would be appropriate to introduce a reusable services section: (examples)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to expose the following question:
Could it be useful to have an IAPPLICATIONDBCONTEXT interface in the Application project (I believe) project? I understand that it would introduce a dependency with Microsoft.entityFrameWorkcore and that a repository (Ardalis) approach has decided to access data.
And I was wondering with this approach some logics even a little more complex validation (Request Validator) would become a bit too verbose / repetitive and full of repositories ... in case it would be appropriate to introduce a reusable services section: (examples)
![image](https://user-images.githubusercontent.com/27079402/154601941-f1677222-02d6-46ca-a5b8-f336fdc2cae9.png)
Beta Was this translation helpful? Give feedback.
All reactions