This question is locked. New answers and comments are not allowed.
Hi,
For example I've got to repositories ProductRepository and EmployeeRepository they can add, delete, and get filtered collections of products and employees. They uses objectscope to do their operations.
What is the best place and time to create objectscope.
1. Per method of repository
2. Per instance of repository
3. Create objectscope before using of repositories and pass it via repository contructor.
4. Another way... =)
Cheers,
Alexey Zakharov.
For example I've got to repositories ProductRepository and EmployeeRepository they can add, delete, and get filtered collections of products and employees. They uses objectscope to do their operations.
What is the best place and time to create objectscope.
1. Per method of repository
2. Per instance of repository
3. Create objectscope before using of repositories and pass it via repository contructor.
4. Another way... =)
Cheers,
Alexey Zakharov.