ObjectScope V's ObjectContainer

Thread is closed for posting
4 posts, 0 answers
  1. Mike
    Mike avatar
    7 posts
    Member since:
    Jun 2007

    Posted 11 Dec 2008 Link to this post

    I'm new to this, just got through the reverse engineer and am studying the documentation.  I want to use this ORM in a data-centric Web application binding the persistent objects to the UI controls.  I need scaleability.  This line in the OpenAccess ORM Disconnected API ( Programmers Guide ) threw me : 

    'But there are also application situations that do not allow a direct or a permanent database connection. Examples are Web applications and other asynchronous applications that still need .....'

    I had concluded that ObjectScope was OK for a Web Application - with Optimistic Concurrency defaults I can't see a database connection which spans the UI interactions. Some of the code examples encouraged me by illustrating ObjectScope Transactions which included UI operations in their cope.  I had also concluded that ObjectContainer was primarily for Web Services or portable applications.  

    Is the statement above saying that it is only appropriate for the DAL to give out the persistent objects in ObjectScope for Windows/Lan based applications ?  with ObjectContainer essential for Web hosted applications?      
    Michael

  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 15 Dec 2008 Link to this post

    Hi Mike,
    Because your primary goal is binding UI controls to data, I agree that maybe the ObjectContainer is not the right solution to your needs. We provide with the distribution an Asp.Net DataSource component that is very easy and intuitive to use in the Visual Studio design-time. Our own examples and grid view do use it. So give it a spin and share with us your impression and any thoughts you might have regarding further enhancements.


    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Mike
    Mike avatar
    7 posts
    Member since:
    Jun 2007

    Posted 16 Dec 2008 Link to this post

    Thanks Dimitar.  I'll check out the DataSource - I presume its the OpenAccessDataSource class.  I can see it in the API, but there are no references to it anywhere else in the documentation. Can you please point me at the example WEB ( I.E not Windows ) application example using it?   
  4. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 17 Dec 2008 Link to this post

    Hi Mike,
    First of all the OpenAccessDataSource is scheduled for documentation. It will hopefully make it in the next major release. As to the example you can take a look here: just look at the ASPX tab of the code browser and you will see that it is set inside the pages XML. You use it as a regular data source for the asp.net actually.

    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top