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

OpenAccessContext & OpenAccessDomainService

4 Answers 108 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ubuntu
Top achievements
Rank 1
Ubuntu asked on 04 Apr 2011, 12:44 PM
Hello Everyone,

I start navigating the help to get my first example to work.
I have created a RIA service class library and then I created telerik OA ORM DomainModel & DomainService.
I then setup the referances correclty between the client projects & server projects, everything is fine.

I found something that I need to clarify earlier which is; Help is always reference the OpenAccessContext while I can Only reference the OpenAccessDomainService object in my SL client applications.

I have notice that I can do the calls to DomainService as in the help.

Is this correct or I should do it in a differed way .....
 
Any feedback will be great
Greetings

4 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 06 Apr 2011, 04:16 PM
Hi Ubuntu,

 The OpenAccessContext represents your context created by our domain model. This context is intended to work with in scenarios not involving RIA services. If you would like to use RIA services you should take advantage of our OpenAccessDomainService implementation. Please note that this implementation accepts your real context as a generic parameter and it acts like a wrapper for it. The thing is that there is no way to have an OpenAccessContext on the silverlight client side since only silverlight assemblies are allowed there. Our service implementation allows us to use the RIA code generation and to generate proxy objects for your classes and for the Domain Service on the client side. Using them you will be allowed to work with your persistent types through the actual context.

All the best,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ubuntu
Top achievements
Rank 1
answered on 07 Apr 2011, 11:51 AM
Hello Peter,

It seems that I am doing fine using the DomainContext .. right !!
I mean I have a public variable of type MyDomainContext "the MS help is saying a correspondent for MyDomainService DomainService", I am using this variable to handle the CRUD operation is this correct so far ...?

Also I would like to trap/handle the exception of the DomainService, How can I do that .. I have nothing like has errors or and property on the context to do that ... !! What am I missing here ...

I am asking this because I have call the submitchanges on the context and it return true, but IE is throwing an exception, and I am helpless ...

Best
Ubuntu
0
Ubuntu
Top achievements
Rank 1
answered on 11 Apr 2011, 01:28 PM
Dear All,

Don't bother I have overcome this issue

Regards to all
0
PetarP
Telerik team
answered on 12 Apr 2011, 03:54 PM
Hi Ubuntu,

 We are happy that you have managed to overcome your problems by yourself. Please feel free to contact us back should you face any further difficulties.

Kind regards,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Ubuntu
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Ubuntu
Top achievements
Rank 1
Share this question
or