Silverlight Support

Thread is closed for posting
12 posts, 0 answers
  1. Jeff
    Jeff avatar
    4 posts
    Member since:
    May 2008

    Posted 06 Nov 2008 Link to this post

    I see the ORM has support for n-tier. Is it possible to use Silverlight in this case? So I want my Silverlight app to use an object that it has asked for from the middle-iter, track the changes and then save them back to the middle-tier.
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 07 Nov 2008 Link to this post

    Hello Jeff,

    That is not to complecated to do. Just serialize the persistent object to the page and send it back. Now you have to use our ObjectNetworkAttacher to attach it back to a different ObjectScope. The ObjectNetworkAttacher comes in source code and is installed with OpenAccess in the src directory.

    At the moment we do not have an automatic approach. But it is not so much code you have to write.

    The same solution is possible for all serialization frameworks. If you have a real application on the other side you should think about our ObjectContainer. But it is not light-weight enough for Silverlight.

    Hope that helps,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. damoncarr
    damoncarr avatar
    4 posts
    Member since:
    May 2007

    Posted 08 Nov 2008 Link to this post

    More to your point Jan , if Jeff wanted to simply get a collection back from a Silverlight via a browser initiated Linq query, no go... You'd have to have Telerik create a full build for Silverlight and then runnable on the CoreCLR (the specific CLR Silverlight uses). Many dont realize it's a different world as it runs unmodified on Apple, Linux, etc. It's more a 'OS in the browser' then people realize.

    So the next step of binding that result to say a Silverlight grid, and perhaps even using 2-way binding for example is obviously out.

    I have not played with Microsoft;s new data API http/s (Dynamic Data I believe it is called) but that gives you the conceptual model. The browser would be calling either a literal web service or something at the same level of abstraction. The web service is where all the nice code lives for ORM. I'm a deep NHibernate guy and excited to learn more about Telerik's offering.

    Most implementations in any ORM .NET project I have seen unfortunately end up as 'ActiveRecord' not ORM. In 'ActiveRecord' a mapping is made from a table to class and the class is CRUD enabled (more or less). Nothing wrong with that. It's just using a tiny piece of what ORM can do.

    ORM is where there is no correlation between the two worlds except in a 'pure abstraction' of meta that has no impact on any code down or up stream (or that is the goal with vendors offering different levels of compromise).


    People are using isolated storage effectively for small client-side data caching of results you get in a more raw format as described.

    The problem is it's all infrastructural plumbing work, and it's done in most other scenarios.... I

    If you have one specific use case in mind I'd be happy to share code. I have it all done and in production so it wouldn't take long.
     
    You would call via the WCF SIlverlight support into a server side service which can handle all the ORM APIs you need, be they from Telerik, redhat (NHibernate), etc.

    Thanks,
    Damon Wilder Carr
    domain.dot.net team, lead


  4. Jeff
    Jeff avatar
    4 posts
    Member since:
    May 2008

    Posted 12 Nov 2008 Link to this post

    Actually I was hoping that the ObjectContainer was light weight enough to use in Silverlight. Then  I could write a Silverlight program in the same way I would a WPF program and have full and proper data entry windows.

     

    I release that a Silverlight version would be required but it is the ObjectContainer we're talking about. We wouldn't need a Silverlight implmentation of the mapping, database updating, etc.

     

    So I was hoping for something like:

     

    - Silverlight asks for some data via WCF to the server.

    - Server gets the data into an ObjectContainer and serialises it back to Silverlight

    - Silverlight deserialises it, works on it as required.
    - Then save the data, Silverlight serialises ObjectContainer and sends it back to the server which then deserialises and saves it.

  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 15 Dec 2008 Link to this post

    Hi Jeff,
    We are fully aware that ObjectContainer is not exactly the solution that is 100% suitable to do the job. That is why we are rapidly moving towards providing a Ado.Net Data Service and generic WCF support for SilverLight front-ends. That said you can take a look at our blog series on this topic, and soon there will be a KnowledgeBase article and a code library project to play with. We will require all your assistence guys that you can provide, towards robust and feature complete implementation not only on the server, but also on the client side. We provide a code base with our latest OA release that will help you start implementing your own ADS functionallity. We are considering to provide also a complete integration example with our SilverLight controls, so stay tuned. Hope this was helpful.


    Sincerely yours,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 16 Dec 2008 Link to this post

    Hi Guys,
    As a follow up  I would like to point you to the following resources:

    1. We prepared a series of blog posts that discuss integration of OpenAccess with SilverLight application using Ado.Net Data Services. You can read then here
    2. We uploaded the application sample as a code library item :Using OpenAccess with SilverLight and Ado.Net Data Services

    What remains to be done:

    1. We will have a KnowledgeBase article on the topic that will demonstrate a more real-case scenario.
    2. SilverLight team will prepare an official integration example for the upcoming Q1 2009 release
    3. We will provide a sample application that uses generic WCF implementation ontop of OpenAccess.

    Hope that helps.

    Sincerely yours,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Dencil
    Dencil avatar
    6 posts
    Member since:
    Mar 2009

    Posted 07 Apr 2009 Link to this post

    hi damon,

    i am trying to use Open Access ORM with a Silverlight Application.
    i tried to follow the example code and the forum post by Dimitar Kapitanov which can be found under" http://blogs.telerik.com/DimitarKapitanov/Posts.aspx". (the sample is not working)

    still i was not able to succeed.
    am having a problem in connecting my web application with open access.
    basically i am trying to retrieve all the users from a table and display it on the radgrid.
    so that i can do all the crud operations on the grid and fire it back to the server.
    these opearations are done through a web application.

    is there any sample silverlight application which is hosted by a web application which uses Open Access.
    please advice.

    Thanks in advance,
    dencil.

  8. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 09 Apr 2009 Link to this post

    Hi Dencil,
    You have to update the OA references and to recompile the data model library to be able to run the example in our code library. It would be best if you can send us a small sample that resembles your application so that we can observe what is not working for you. Also the sample mentioned by you is available in our code library as well.

    Sincerely yours,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  9. Dencil
    Dencil avatar
    6 posts
    Member since:
    Mar 2009

    Posted 19 Apr 2009 Link to this post

    hi
  10. abcd
    abcd avatar
    1 posts
    Member since:
    Apr 2009

    Posted 19 Apr 2009 Link to this post

    hi ,

    i managed to connect telerik orm with my silverlight application(displaying all customers from Northwind via WCF hosted in asp.net application).
    now having a hard time in editing and deleting the same.
    would be  really helpful if any one can throw some sample  application for the edit/delete.

    hi Damon ,
    its really nice to hear you are having an application up&running.
    it would be really great if you share the sample of your code.(say for CRUD operation on customer from Northwind)
    would you please mail me your sample code.
    mjsvks@gmail.com

    thanks in advance,
    mjsvks.

  11. Congero
    Congero avatar
    20 posts
    Member since:
    Sep 2012

    Posted 04 May 2009 Link to this post

    Hi Guys
    I'm interested in doing some work in this area, are there any updated code samples or guidance I can look at before I dive in?
  12. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 05 May 2009 Link to this post

    Hi Reggie Tyler,
    We do not have new examples in that area, but please do share what your expectations are, also some practical approaches that you would like to see. We will try to address your needs accordingly.

    All the best,
    Dimitar Kapitanov
    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.
Back to Top