OpenAccessContext & OpenAccessDomainService

5 posts, 0 answers
  1. Ubuntu
    Ubuntu avatar
    89 posts
    Member since:
    Jul 2012

    Posted 04 Apr 2011 Link to this post

    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
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 06 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Ubuntu
    Ubuntu avatar
    89 posts
    Member since:
    Jul 2012

    Posted 07 Apr 2011 Link to this post

    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
  5. Ubuntu
    Ubuntu avatar
    89 posts
    Member since:
    Jul 2012

    Posted 11 Apr 2011 Link to this post

    Dear All,

    Don't bother I have overcome this issue

    Regards to all
  6. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 12 Apr 2011 Link to this post

    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
Back to Top
DevCraft banner