wcf linq tutorial - wpf

Building a WPF XBAP based application, I need to access data in my hosted SQLServer DB (Shared hosting).
Therefore I need to create a WCF LINQ based service.
Anyone knows of a simple end-to-end tutorial demonstrating how to build the service and install it on the hosted webserver?
I've found several but either they are ASP.NET or Silverlight dedicated, either they are far from comprehensive...
Please do not answer with ASP.NET solutions... I need WPF.
Thanks in advance.

Consider using RIA Services for your scenario (calling the services from WPF rather than Silverlight).
See this StackOverflow question for references on how to call RIA Services from WPF: How to use WCF RIA SERVICES with WPF application?

Related

Adding service reference for Silverlight Application with WCF services

Im totally new to WCF. Trying to create a Silverlight application with WCF services.
Im not sure what address to fill in for adding the service reference for the client side.
Also, what do I need to specify in the Web config file in the server side?
Thanks.
There are a few different kinds of WCF Services. WCF Services, WCF Data Services & WCF RIA Services. For a bit of background on these types/kinds check out this forum entry.
If you are using just WCF Services, here's an intro and a sample and another sample that should get you going. :-)
Here's a great overview from Shawn Wildermuth on creating a WCF Data service & consuming it in various ways.
WCF RIA Services are specifically built/optimized for Silverlight. If you are in control of the Service as well you might want to look into creating a RIA Service instead of just a WCF Data Service. Here's an intro to RIA Services.

why Silverlight 4 uses WCF RIA service for Entity Framework?

I want to use Entity framework in silverlight , But with out RIA service .
Is there any way ?
If WCF RIA is mandatory than why so ?
Silverlight is a client side runtime (Code is not executed on the server). And therefore you cannot use Entity Framework to call a DB directly from it. RIA Services essentially create a web service layer that Silverlight can talk to. On the client side proxy classes are created to interact with the service layer. RIA Data Services is designed to make it appear as if you are interrogating EF directly.
To use EF without RIA services you can create a basic service class and have all your business logic in it, and from within this service you can use Entity Framework. You would make calls to this service layer just like any other service.

Silverlight and Windows Workflow Foundation

Can I make a Silverlight application communicate with a Windows Workflow Foundation (WF) application? If yes, how can I do that?
I tried to add a reference from my Silverlight application to a WF application and it doesn't work.
If your application was a service application, then yes.
Silverlight won't host a workflow, but it could call a workflow service if the workflow you need to run is hosted within a service rather than an application.
It should be a matter of adding the service reference within the Silverlight application.

silverlight and spring.net

can i use both silverlight and spring.net in the same web based project
Silverlight is a client technology and spring.net is a server technology, as long as you aren't trying to implement a Silverlight client that is also a spring server, you should be able to do whatever you want with the two.

Access Windows Azure API via Silverlight?

I am interested in the best practices to access Windows Azure API from a Silverlight application? I am pretty sure as an experienced developer it will require me to build a back end web service that silverlight can then use as an interface between Azure API and Silverlight. But I am concerned with speed and security...For instance I am guessing I can use WCF, but what is the fastest way to get this communication to occur?
Also this is an assumption on my part that a webservice is needed, is there any support from Azure for Silverlight? I couldn't find anything on Microsoft site about this, only how to host a Silverlight application on your Azure Storage Blob which is not what I am asking...
Thanks!
Your assumption is correct. You will have to create a web service (wcf is considered best practice) that exposes the methods in the Azure API that you want to access.

Resources