This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
am using Lightspeed 3.0 have got a silverlight solution with 3 projects
am using WCF to get the data from the SilverlightData project. have got Lightspeed model in the SilverlightData project - and have added some DataAnnotations to some of the entities e.g. [Display(Name = "LookupValueName", Description = "LookupValueDescription")] These annotations are in the Lightspeed_Model.cs file but they do not cross the "great divide" - when i look in the Reference.cs file - the entities (and their properties) are all there but no data annotations.... is there a way of getting the DataAnnotions that are described in the Lightspeed Model into the Reference.cs file so that i can uses the DataAnnotions for validation etc in the Silverlight XAML ?? (or is it a call for.Net RIA services ??)
|
|
|
I am pretty sure that a plain ol' WCF Add Service Reference does not preserve data annotations: WCF treats data contracts as pure schema and doesn't try to bring across business logic concerns such as validation. I believe .NET RIA Services *does* respect annotations and indeed works by some sort of code sharing rather than a pure service reference. However I've had no experience of RIA Services so I may be wrong here; we'd definitely advise doing a quick try-out before putting too much effort into it! If you do decide to investigate this, we'd be very interested to hear your experiences of using RIA Services with LightSpeed. Thanks! |
|