Hey guys:
I'm looking through all of the examples available with the lightsamples downloads and I'm trying to figure out what all I need to do with my codesmith templates to output CSLA objects that are consumable by both Silverlight and normal ASP.NET applications.
I am using the latest Codesmith CSLA templates provided by the Codesmith team and I want to customize them for Silverlight. Can someone list what needs to happen to the generated classes?
Is it as simple as wrapping all of the currently generated DataPortal_XYZ functions with #if !SILVERLIGHT and having the templates also generate a set of DataPortal_XYZ methods that silverlight can consume in the #else block?
I've also seen in the demo applications where the constructor is public for Silverlight and I don't quite understand why that would be?
Also, where exactly would a WCF service layer most appropriately fit? I see in the examples that you can use WCF from Silverlight directly or you can use the remote data portal (which may or may not employ WCF services).
Is either method better than the other? Would the remote data portal approach be a better choice considering we want to use the objects in Silverlight and normal Web/Windows applications?
Keep in mind this Silverlight and WCF territory is very new to me so if some of these questions seem overly noobish please be gentle.
Thanks,
Will
The best source of information about CSLA .NET for Silverlight is the video series from http://store.lhotka.net.
Silverlight objects do have some different requirements, including:
CSLA .NET for Silverlight supports several different architectural configurations, including:
There are variations on these themes, with various authentication capabilities and so forth.
Thanks Rocky.
I'll put pressure on my manager today for the video series. They sounded open enough to do it so maybe I can rush them along.
I appreciate the tips!
Will
Copyright (c) Marimer LLC