Need for WCF Data Service 5.0 support of Telerik.Windows.Controls.DataServices

8 posts, 1 answers
  1. Peizhe
    Peizhe avatar
    7 posts
    Member since:
    Dec 2011

    Posted 07 Apr 2013 Link to this post

    Telerik.Windows.Controls.DataServices use System.Data.Services.Client.dll which is for old wcf data services.However, Visual studio 2012 use Microsoft.Data.Services.Client.dll (for WPF) and Microsoft.Data.Services.Client.SL.dll(for Silverlight) to suppor WCF Data services 5.0+. The old client dlls has some limitations we need to avoid. We use QueryableDataServiceCollectionView ( in Telerik.Windows.Controls.DataServices.dll) in our products(Silverlight 4.0+,.WPF 4.0+) and need it to support WCF Data Services 5.0+.
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 08 Apr 2013 Link to this post

    Hi,

    I am afraid that we cannot build the control against two different sets of assemblies at the same time. We can only target assemblies which are an official part of the .NET Framework/Silverlight.

    System.Data.Services.Client.dll is part of the base framework that ships with .NET 3.5 and upwards. The Microsoft.Data.Services.Client.dll is an updated version of this library which is not yet part of the base .NET installation package and contains any new features since the base release.

    I am afraid that we are unable to target assemblies which are not part of the official framework, since they can be updated any single day or night through NuGet. You can imagine what that means for a control vendor which depends on Microsoft assemblies. This article explains the difference between both sets of assemblies.

    Have you tried replacing the System.* references with the Microsoft.* ones in your project. If the public API is the same in the Microsoft.* assemblies, your project should be able to compile against the Microsoft.* assemblies. After all, our source code works with several MS classes such as the DataServiceQuery and DataServiceContext -- if they are the same and in the same namespace in the new assemblies then it should be able to compile. Have you tried this approach?

    All the best,
    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Peizhe
    Peizhe avatar
    7 posts
    Member since:
    Dec 2011

    Posted 08 Apr 2013 Link to this post

    Could youd made some internal builds of Telerik.Windows.Controls.DataServices(both for WPF and Silverlight) for support WCF Data Services 5.0+? Since the old System.Data.Services.Client.dll has many limitations on custom operations,but we used custom operations heavily in our products,so it is not an option for us to use old System.Data.Services.Client.dll as a replacement.The last solution for us is to replace QueryableDataServiceCollectionView with an alternativ similar,e.g, PagedCollectionView.
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 09 Apr 2013 Link to this post

    Hi,

    Unfortunately, we cannot provide such builds.

    Have you tried replacing the System.* references with the Microsoft.* ones in your project?

    Greetings,
    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Peizhe
    Peizhe avatar
    7 posts
    Member since:
    Dec 2011

    Posted 09 Apr 2013 Link to this post

    Yes, I've tried replacing the System.* references with the Microsoft.* ones in our project.All are ok except the code used QueryableDataServiceCollectionView, because QueryableDataServiceCollectionView does not recognize DataServiceContext from Microsoft.*.dll.
  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 09 Apr 2013 Link to this post

    Hi,

    Actually, our assembly Telerik.Windows.Controls.DataServices for .NET 4.5 (i.e. with version ending in .45) was built against the Microsoft.Data.Services.Client.dll. So if you are using it, you should be able to use the new WCF Data Services starting with Microsoft.

    As for Silverlight, we will consider whether we can support two different versions at the same time (our build infrastructure is quite complex not to mention the online examples, web-site and so forth) or we will simply dump the System.* references and migrate to the Microsoft ones. Our main problem is that this will be one control with two different custom versions, which has never been needed before and the existing infrastructure has no way of supporting such a scenario at the moment.

    I will let you know when I have more information regarding this issue.

    All the best,
    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. PW
    PW avatar
    13 posts
    Member since:
    May 2009

    Posted 03 Nov 2014 in reply to Rossen Hristov Link to this post

    We are referencing Telerik.Windows.Controls.DataServices50.dll, version: 2014.1.331.1050.  We using the QueryableDataServiceCollectionView class.  It compiles fine with OData version 5.6.0 using Microsoft.DataServices.Client.SL version 5.6.0.0.  When I upgraded to OData 5.6.2 or 5.6.3 I get a compile error saying I must add a reference to Microsoft.Data.Services.Client.SL, Version=5.6.0.0.  Is there a version of QueryableDataServiceCollectionView that has been compiled with a later version of OData?
  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 06 Nov 2014 Link to this post

    Hi,

    I am afraid that currently there is not such a version. We have this feature request already logged on our public Feedback Portal. You can vote for it and also follow its progress here:
    Add support for NuGet package which targets OData v4.


    Regards,
    Dimitrina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner