Where in the domain model is it best to keep a link to the current user?

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?

+3
source share
1 answer

, - "ApplicationContext". HttpContext/Session ASP.Net Singleton .

+6

Source: https://habr.com/ru/post/1730905/


All Articles