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

ObjectScope V's ObjectContainer

3 Answers 157 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.
Mike
Top achievements
Rank 1
Mike asked on 11 Dec 2008, 03:06 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 15 Dec 2008, 08:16 PM
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.
0
Mike
Top achievements
Rank 1
answered on 16 Dec 2008, 06:26 PM
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?   
0
Dimitar Kapitanov
Telerik team
answered on 17 Dec 2008, 09:09 AM
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.
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or