How to pass current user to repository classes?
Existing user credentials are required for the connection string used by the repositories. Should each repository be created by specifying a username and password as constructor parameters? This means that every domain object that has a repository needs to know about the current user.
Where in my domain model is it best to keep a link to the current user?
Fikre source
share