This is a migrated thread and some comments may be shown as answers.

An ORM newbie asks...

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 17 Jun 2012, 10:43 AM
I've just watched the video "Managing the OpenAccess ORM Context in ASP.Net Webforms Applications".

Can someone, ideally using short words (I'm not that bright) tell me the pros and cons of each option?

I can see the advantages and disadvantages of the MasterPage approach, but why should I choose with of the other methods over it? Or either of them over the other?

-- 
Curious of Grantham.

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 20 Jun 2012, 02:49 PM
Hi Stuart,

      Using the approach the ContextFactory pattern can lead to problems related to the key calculation in 64bit environment and disposing of resources issues. 
       Master page is better approach because it will be created, used and disposed in page’s lifecycle. This will avoid all possible resource issues related to their disposing.
       Best approach which you could use is short-living context. In this scenario a context instance is being created, used and disposed only when it is needed.
Hope that helps.

Regards,
Damyan Bogoev
the Telerik team
OpenAccess ORM Q2'12 Now Available! Get your hands on all the new stuff.
Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Damyan Bogoev
Telerik team
Share this question
or