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

How to use OA with RIA?

19 Answers 421 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.
pantarhei
Top achievements
Rank 1
pantarhei asked on 14 Aug 2009, 11:19 PM

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 
 

19 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 18 Aug 2009, 12:14 PM
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.
0
Bernhard
Top achievements
Rank 2
answered on 02 Oct 2009, 05:54 AM

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

0
Dimitar Kapitanov
Telerik team
answered on 06 Oct 2009, 04:35 PM
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.
0
Dan
Top achievements
Rank 1
answered on 01 Dec 2009, 04:05 PM
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
0
Dimitar Kapitanov
Telerik team
answered on 04 Dec 2009, 05:58 PM
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.
0
SwanB
Top achievements
Rank 1
answered on 07 Jan 2010, 07:35 PM
Any progress on this one ?

or status update ?

Regards,

SwanB
0
PetarP
Telerik team
answered on 08 Jan 2010, 11:03 AM
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.
0
Stephane
Top achievements
Rank 1
answered on 09 Jan 2010, 01:40 AM
I can't wait for the release!  How will OpenAcess compare to Microsoft's new entity framework 2.0???

Stephane
0
Dimitar Kapitanov
Telerik team
answered on 13 Jan 2010, 09:45 AM
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.
0
Lev Rosenblit
Top achievements
Rank 2
answered on 20 Jan 2010, 12:11 PM
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
0
PetarP
Telerik team
answered on 22 Jan 2010, 06:25 PM
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.
0
Ben Hayat
Top achievements
Rank 2
answered on 22 Jan 2010, 06:55 PM
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
0
Stephane
Top achievements
Rank 1
answered on 22 Jan 2010, 07:07 PM
I Concur!!!
0
Dimitar Kapitanov
Telerik team
answered on 27 Jan 2010, 11:34 AM
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.
0
Sörnt Poppe
Top achievements
Rank 1
answered on 11 Mar 2010, 12:37 PM
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
0
Sörnt Poppe
Top achievements
Rank 1
answered on 12 Mar 2010, 08:43 AM
*bump*
0
PetarP
Telerik team
answered on 12 Mar 2010, 05:15 PM
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.
0
Lev Rosenblit
Top achievements
Rank 2
answered on 12 Mar 2010, 08:20 PM
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.
0
PetarP
Telerik team
answered on 17 Mar 2010, 05:53 PM
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.
Tags
Getting Started
Asked by
pantarhei
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Bernhard
Top achievements
Rank 2
Dimitar Kapitanov
Telerik team
Dan
Top achievements
Rank 1
SwanB
Top achievements
Rank 1
Stephane
Top achievements
Rank 1
Lev Rosenblit
Top achievements
Rank 2
Ben Hayat
Top achievements
Rank 2
Sörnt Poppe
Top achievements
Rank 1
Share this question
or