Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LinqToSql And Silverlight
Message
De
27/10/2010 14:12:06
 
 
À
24/10/2010 13:31:33
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01486268
Message ID:
01487210
Vues:
44
>>>>>>>>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?
>>>>>>
>>>>>>And, would you create a service specific to the data, or a more generalized service that can access any data?
>>>>>
>>>>>Install RIA services and use business app. template and it would create the necessary projects for you. It is a separate project with the service and it is an interface. It is up to you how you would define and implement your interface methods. It even works well against data sources like VFP.
>>>>
>>>>I suggested that in my first post - don't think Kevin was interested :-}
>>>>I'm currently trying to suss the best way to do the same thing but using an existing website......
>>>
>>>Pity he wasn't interested:)
>>>Cetin
>>
>>While RIA is pretty awesome, it has a few glaring potential points of failure. One of them is the synchronization between the two projects (server and local/browser.) Although .NET tries to keep those two synchronized during development, sometimes the paths separate and then it can be quite difficult to manually re-synch them. Some frameworks (such as IdeaBlade, which is what I use) simply create a "shortcut" to one project instead of trying to move two projects along in lock-step. In other words, the design is normalized, changes happen only in one place.
>
>Hi,
>Can you explain a little more about what you mean by a 'shortcut' (I assume you don't simply mean a reference) ?
>I've been looking a bit at RIA Services (not especially at the 'SilverLight Business Application' template but that as well) and, whilst I agree that there are problems, I'm not sure how it could be done differently.....
>Regards,
>Viv

Sorry for the delay in getting back to you.

My understanding is that Ideablade creates a "link file" or a shortcut for a given class object from the Silverlight side to the web side through the Ideablade template that is generally used in Ideablade applications. When the project compiles, Ideablade directs the compiler to the same physical file, which resides on the web side of the project, thus making sure that both Silverlight and Web sides compile exactly the same code. RIA, on the other hand, creates a proxy on the SL side, which has its own code that is used when compiling the SL side of the project. Since this proxy file is physically different from the web side file, these two files can get out of synch at which point the project can spin out of control.

If you are further interested in this (and actually hearing it straight from the "horse's mouth", I suggest watching this video (this particular explanation starts around minute 3): http://www.ideablade.com/Videos/SilverlightQuickie/index.html

Cheers!
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform