Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LinqToSql And Silverlight
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01486268
Message ID:
01486352
Vues:
50
>>>I created a Silverlight project. Why is there no LinqToSql in the Add New Item dialog?
>>
>>In Silverlight you access to data via services. You create two projects and in one of them (SL.Web) you add your L2S, L2E or whatever creating a WCF service. From the SL project you instantiate and make asynch calls to your service.
>>Cetin
>
>So you create a WCF or Web Service in the .Web project? Or create a seperate project with the service and add a reference in the .Web project?

You can create the service directly in the web project but better to put it in a seperate project so that it can be reused elsewhere if neccessary. If you do the latter you will just need to create a *.svc file on the web site to identify the service. Just the one line:
< %@ ServiceHost Language="C#" Service="My.ServiceLibrary.Service" % >
where Service is the class of the service in the referenced project...

>And, would you create a service specific to the data, or a more generalized service that can access any data?

My 2c : Keep it specific.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform