This question is locked. New answers and comments are not allowed.
Hello everybody,
i have a question about the scope in web applications. I read the best practices and it says that it is ok to put the scope in the session and clear the session after that. So that means, taht i create the scope on every request.
So we have about 60 classes which are mapped in our company and it takes around 2,5 seconds to create a scope every time, but when we create the scope on the first time and never ever:-) again and then put it into the session and keep it there it saves time to. We just look on a request in the session and take it out of there.
What is the best way. Your examples are alwys on some classes with some members but how I mentioned we have around 60 classes with lots of members. I understand that it takes time for the OR Mapper to check the mapping but that must go faster.
What would you suggest me to put it into the session or create it everytime or maybe i did understand something wrong???
i have a question about the scope in web applications. I read the best practices and it says that it is ok to put the scope in the session and clear the session after that. So that means, taht i create the scope on every request.
So we have about 60 classes which are mapped in our company and it takes around 2,5 seconds to create a scope every time, but when we create the scope on the first time and never ever:-) again and then put it into the session and keep it there it saves time to. We just look on a request in the session and take it out of there.
What is the best way. Your examples are alwys on some classes with some members but how I mentioned we have around 60 classes with lots of members. I understand that it takes time for the OR Mapper to check the mapping but that must go faster.
What would you suggest me to put it into the session or create it everytime or maybe i did understand something wrong???