How to use OA with RIA?

20 posts, 0 answers
  1. pantarhei
    pantarhei avatar
    12 posts
    Member since:
    Jul 2008

    Posted 14 Aug 2009 Link to this post


    On the SL Site we can see a quite interesting and impressive video:
    http://silverlight.net/learn/learnvideo.aspx?video=245417

    is this kind of binding (Domain Service Class) available for OA too? i tried to get it running as shown in the video. but i get an error if it try to compile.
    Looks like i am missing something or OA isn't made to be used like this. can we have a demo to use telerik oa like seen in the webcast?

    my code. ScopeProvider and data access is located in another project

    using TestOA.Data; 
    using Telerik.OpenAccess.Query; 
     
    namespace TestOA.Web 
      using System; 
      using System.Collections.Generic; 
      using System.ComponentModel; 
      using System.ComponentModel.DataAnnotations; 
      using System.Linq; 
      using System.Web.Ria; 
      using System.Web.Ria.Data; 
      using System.Web.DomainServices; 
     
     
      // TODO: Create methods containing your application logic. 
      [EnableClientAccess()] 
      public class TestDataDomainService : DomainService 
      { 
        public IQueryable<TestData> GetData(){ 
          var scope = TestOaScopeProvider.ObjectScope(); 
          var result = scope.Extent<TestData>().Select(data => data); 
          return result; 
        } 
      } 



    the error

    Error   1   The "CreateRiaClientFilesTask" task failed unexpectedly. 
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
       at Telerik.OpenAccess.PersistentAttribute.get_IdentityClassName() 
       --- End of inner exception stack trace --- 
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) 
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) 
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) 
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) 
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) 
       at System.Web.DomainServices.Tools.StandardCustomAttributeBuilder.GetPropertyValues(IEnumerable`1 propertyMaps, Attribute attribute) 
       at System.Web.DomainServices.Tools.StandardCustomAttributeBuilder.GetAttributeDeclaration(Attribute attribute) 
       at System.Web.DomainServices.Tools.CustomAttributeGenerator.GenerateCustomAttributes(ClientProxyGenerator proxyGenerator, CodeTypeDeclaration referencingType, IEnumerable`1 attributes, CodeCommentStatementCollection comments) 
       at System.Web.DomainServices.Tools.CustomAttributeGenerator.GenerateCustomAttributes(ClientProxyGenerator proxyGenerator, CodeTypeDeclaration referencingType, IEnumerable`1 attributes, CodeAttributeDeclarationCollection outputCollection, CodeCommentStatementCollection comments) 
       at System.Web.DomainServices.Tools.EntityProxyGenerator.Generate() 
       at System.Web.DomainServices.Tools.ClientProxyGenerator.GenerateProxyClass(String& generatedCode) 
       at System.Web.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies() 
       at System.Web.DomainServices.Tools.CreateRiaClientFilesTask.Execute() 
       at Microsoft.Build.Framework.ITask.Execute() 
       at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)   TestOA 
     

  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 18 Aug 2009 Link to this post

    Hi pantarhei,

    Unfortunately Telerik OpenAccess ORM  is not yet ready to work with RIA Services. However we are actively working on implementing a new data context aimed at solving this problem. We will notify you once this data context makes it into the product.
    Kind regards,
    Petar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Bernhard
    Bernhard avatar
    8 posts
    Member since:
    Apr 2009

    Posted 02 Oct 2009 Link to this post

    Hi

    do you know when Telerik OpenAccess ORM  is ready to work with RIA Services? Is there an example or a blog article about that?

    Kind regards

    Bernhard

  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 06 Oct 2009 Link to this post

    Hello Bernhard,
    Currently the provider for RIA Services is still under development and we have no exact time-frame for release. Things are changing a lot in RIA Services and we have to account for all of them. I hope we will achieve this for Q3 release latest.

    All the best,
    Dimitar Kapitanov
    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.
  6. Dan
    Dan avatar
    35 posts
    Member since:
    Oct 2008

    Posted 01 Dec 2009 Link to this post

    In light of the recent announcements at PDC regarding WCF RIA Sevices, can we expect to see an OpenAccess implemention of DomainService with the appropriate custom MetadataProvider?  This would dramatically simplify working with OpenAccess in  WCF RIA projects.

    -Lars Solberg
  7. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 04 Dec 2009 Link to this post

    Hi Lars Solberg,
    Yes, we waited exactly for this moment - the PDC release for WCF Ria Services is stable enough, and the API is close to a lock-down from my perspective, so we are re-starting the development cycle on this, and my estimations are that even before Q1 (probably late January) we will have descent support for Ria. I hope that this estimation is finally correct. Thanks for the interest.

    All the best,
    Dimitar Kapitanov
    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.
  8. SwanB
    SwanB avatar
    44 posts
    Member since:
    Oct 2006

    Posted 07 Jan 2010 Link to this post

    Any progress on this one ?

    or status update ?

    Regards,

    SwanB
  9. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 08 Jan 2010 Link to this post

    Hello SwanB,

    The RIA provider for Telerik OpenAccess ORM is still under development. Unfortunately I cannot give you an exact time frame when it will be available. Currently you can use RIA with OpenAccess only for read operations. A much better functionality will be introduced with Q1 2010. Please also note that the RIA data services will be supported by the Data Service Wizard as well.

    Best wishes,
    Petar
    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.
  10. Stephane
    Stephane avatar
    6 posts
    Member since:
    Sep 2008

    Posted 08 Jan 2010 Link to this post

    I can't wait for the release!  How will OpenAcess compare to Microsoft's new entity framework 2.0???

    Stephane
  11. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 13 Jan 2010 Link to this post

    Hi Stephane,
    I hope we have lots of the stuff, except for POCOs. We are more targeting at transporter objects pattern, that is used by Ria Services. We will have fluent API, plus a visual designer for reverse mapping. Tell me if you need more information.

    Kind regards,
    Dimitar Kapitanov
    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.
  12. Lev Rosenblit
    Lev Rosenblit avatar
    16 posts
    Member since:
    May 2008

    Posted 20 Jan 2010 Link to this post

    Hello,
    I've developed a silverlight app with openaccess using Astoria. the problem is, that i have collections and entities inside other entities (as usual with an OA data modal) but using Astoria, when i asynchronously get a list of entities, each entity doesnt contain the collection and other entity references i expect it too.
    thats why after a lot of workarounds, i've abandoned this path.
    we are on a critical junction and have to decide if we should wait and use ria services (provided of course that ria solves this problem) or to migrate the presentation layer to ajax.

    1) full ria context support will be available only in Q12010, when is the release scheduled? march?
    2) is there a beta you can make available for us in the mean time?
    3) will ria services solve the problem i described?

    Thanks,
    Lev Rosenblit
  13. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 22 Jan 2010 Link to this post

    Hi Lev Rosenblit,

    1. Yes. The complete implementation of the RIA data services will be available with Q1 2010 latest. The release itself is targeted for early march.
    2. A public beta will most probably be available prior to the Q1 release. However, having the fact that we are considering great amount of improvements for this release we cannot guarantee for sure that the provider will make it in the beta (it will be part of the official release for sure).
    3. Yes. RIA services is far more flexible and "user friendly" than Astoria and we believe that it will help you overcome all the workaround you had to use with ADO.NET data services.

    All the best,
    Petar
    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.
  14. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 22 Jan 2010 Link to this post

    OA Team;

    I was reading the previous posts and see the progress of OA in regards to SL and RIA. I'd like to bring up a couple of points and see how we can paint the big picture.

    Currently, most of developers using EF with RIA, since it comes std as part of the development when you start a SL business app. In one way it's good because you know the RIA team spend lots of time ensuring it works with EF. However, I have my reservations about EF and it's capabilities (that is EF 1.0. I have not worked with EF 4.0). However, OA seems to becoming a great contender and I have no doubt it will stand out against EF.

    My suggestion is that to have a clear comparison chart (in particular with regards to SL and RIA) where each product stands out or falls. This way a developer can look at the chart and decide which one to use.
    Secondly, in the same space, how OA works seamlessly with Azure SQL and RIA services. This will become a good combo to see how much better OA does the job compared to EF as a middle man.
    Thirdly, I like to see a roadmap where OA is in relation to SL, RIA and Azure. This way we can plan when we should start using OA for our next LoB apps in SL.

    Hope these suggestions help.
    ..Ben
  15. Stephane
    Stephane avatar
    6 posts
    Member since:
    Sep 2008

    Posted 22 Jan 2010 Link to this post

    I Concur!!!
  16. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 27 Jan 2010 Link to this post

    Hello Stephane,
    Ok guys I take seriously what you propose. For me the outcome of this should be:

    1. A comparison document: Telerik OpenAccess ORM vs. Entity Framework v. 1.0 (and v.4.0 if possible)

    2. Special road map regarding Telerik OpenAccess ORM and Silverlight technology stack integration: RIA Services, ADS, Azure.

    I cannot tell you the exact time-frame, but we will definitely have those published and available for Q1 2010 release or even before that. Also I am logging this into our public issue tracking system under IDs: 50942 and 50964 .



    Greetings,
    Dimitar Kapitanov
    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.
  17. Sörnt Poppe
    Sörnt Poppe avatar
    46 posts
    Member since:
    Mar 2010

    Posted 11 Mar 2010 Link to this post

    Hi Dimitar,

    are these documents somewhere available? The support for RIA Services was't mentioned at the 2010 Q1 release.
    Is there any progress?

    Kind regards,

    Sörnt
  18. Sörnt Poppe
    Sörnt Poppe avatar
    46 posts
    Member since:
    Mar 2010

    Posted 12 Mar 2010 Link to this post

    *bump*
  19. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 12 Mar 2010 Link to this post

    Hi Sörnt Poppe,

    As you have most probably already seen there are some major changes and improvements in Telerik OpenAccess ORM. While those improvements are one great step for OpenAccess they took a long time to implement and this inevitably led to less development time for our RIA provider. However we acknowledge the need to support RIA data services and we are currently working on providing a stand alone project that will work as a ria provider (something similar to what we did with the ADO data services). I will post here when we have something to deliver.

    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.
  20. Lev Rosenblit
    Lev Rosenblit avatar
    16 posts
    Member since:
    May 2008

    Posted 12 Mar 2010 Link to this post

    Hello,
    I use Telerik Ajax, Silverlight, Reporting & OpenAccess for some time now, and one thing that was always constant is the reliability of the Telerik products, the powerful features and functionality and the excellent support.
    When a bug was posted, or a feature was required, the support team stated a release date and supplied a solution on date.

    Thats why when Telerik support team writes about a release for an important issue (OA vs EF & RIA) - you can check your answer to my previous post on Jan 20, 2010 - I for one fill confidant based on past performance, to count those statements by Telerik as part of my road map for the applications i develop based on Telerik tools.

    Therefor, I expect Telerik to post a statement about the delay in releases at least in the support forums, and not have us query Telerik support at the release date.

    just a general note.
  21. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 17 Mar 2010 Link to this post

    Hi Lev Rosenblit,

    We, the Telerik team, are always trying to stick strictly to the roadmap. However, please understand that we work in a dynamic environment and our goals are subject to a change. The new visual designer required great efforts from our team and this inevitably led to less development time for the RIA provider. We could have released something working but it would have worked only for the most basic and common scenarios. That is why we decided to postpone the RIA provider for a time where it can be stable and reliable. I hope you understand our reasons and I am really sorry for the inconvenience this delay might be causing.

    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