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

Silverlight Support

11 Answers 7661 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff
Top achievements
Rank 1
Jeff asked on 06 Nov 2008, 11:16 PM
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.

11 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 07 Nov 2008, 08:44 AM
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.
0
damoncarr
Top achievements
Rank 2
answered on 08 Nov 2008, 03:49 PM
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


0
Jeff
Top achievements
Rank 1
answered on 13 Nov 2008, 04:44 AM

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.

0
Dimitar Kapitanov
Telerik team
answered on 15 Dec 2008, 07:43 PM
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.
0
Dimitar Kapitanov
Telerik team
answered on 16 Dec 2008, 05:21 PM
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.
0
Dencil
Top achievements
Rank 1
answered on 08 Apr 2009, 04:02 AM
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.

0
Dimitar Kapitanov
Telerik team
answered on 09 Apr 2009, 06:16 AM
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.
0
Dencil
Top achievements
Rank 1
answered on 19 Apr 2009, 03:58 PM
hi
0
abcd
Top achievements
Rank 1
answered on 19 Apr 2009, 04:08 PM
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.

0
Congero
Top achievements
Rank 1
answered on 04 May 2009, 11:45 AM
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?
0
Dimitar Kapitanov
Telerik team
answered on 05 May 2009, 07:06 AM
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.
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
damoncarr
Top achievements
Rank 2
Jeff
Top achievements
Rank 1
Dimitar Kapitanov
Telerik team
Dencil
Top achievements
Rank 1
abcd
Top achievements
Rank 1
Congero
Top achievements
Rank 1
Share this question
or