Skip Navigation LinksHome / Community & Support / Code Library / Telerik OpenAccess ORM > General and Integration Projects > Best Practices in web development with OpenAccess

Not answered Best Practices in web development with OpenAccess

Feed from this thread
  • Posted on Feb 16, 2009 (permalink)

    Requirements

    RadControls for ASP .NET AJAX version

     

    2008.3.1314.35
    OpenAccess ORM version 2010.2.714.1
    .NET version

     

    3.5
    Visual Studio version

     

    2008
    programming language

     

    C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    The project demonstrates the mostly recommended approaches for handling the object scope in a web development environment. It relates to the Knowledge-Base article discussing this topic.

    UPDATE:The most recent version of this project can be found in the Software Development Kit, which you can download here. In case you have questions related to this project, please use the support ticketing system.

  • CodeMonkey avatar

    Posted on Nov 1, 2009 (permalink)

    I don't follow ths sample.

    I see the IObjectScope being created in the ScopeModule (BestPracticesHttpModule) but I see no access to that session held object from the pages in BestPracticesMasterPage. The master page appears to be getting a new scope from the local project implmentation of IObjectScopeProvider rather than the one loaded into the session. 

    What is it I am missing?

  • Zoran Zoran admin's avatar

    Posted on Nov 2, 2009 (permalink)

    Hello CodeMonkey,

    The HttpModule and the Master Page are two different approaches of handling the object scope that do not have too much in common. In the Master Page an object scope is always obtained from the ObjectScopeProvider and it is accessed in the child pages via the Scope property of the Master Page.

    In the HttpModule approach the scope is created and stored in the Session using the module and it is hence accessed in the pages of the project that contains the HttpModule on their Page_Init event handler.

    Sincerely yours,
    Zoran
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • CodeMonkey avatar

    Posted on Nov 2, 2009 (permalink)

    Oops my bad.

    I didn't see the Default.aspx in the BestPracticesHttpModule, I assumed it was just a project holding the ScopeModule and not web project in itself.

    I am using the ASP.NET MVC projects with a Model layer (OA classes) and a Repository/Service layers being called from the controllers - is there a preferred technique in this scenario?

  • Zoran Zoran admin's avatar

    Posted on Nov 3, 2009 (permalink)

    Hi CodeMonkey,

    Well you can use either of the approaches as well as the one described in the second part of the KB-article series. There is no specific recommendation for the approach you are about to take, it is all left for the user to decide.

    Regards,
    Zoran
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • Damyan Bogoev Damyan Bogoev admin's avatar

    Posted on Jun 13, 2011 (permalink)


    The most recent version of this project can be found in the Software Development Kit, which you can download here. In case you have questions related to this project, please use the support ticketing system.

    All the best,
    Damyan Bogoev
    the Telerik team
    Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / Telerik OpenAccess ORM > General and Integration Projects > Best Practices in web development with OpenAccess