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
|
Is it possible to use a Lightspeed Model to query a database with LINQ and serialize with the DataContractSerializer class? If so, are there any samples? Thank you in advance, Steve. |
|
|
Hi Steve, In regards to the LINQ querying, check out our LINQ Queries sample which is installed as part of the LightSpeed samples, this should give you a reasonable coverage over what is possible - in general there isnt much too it, especially if you are generating a custom UnitOfWork using the Designer. In regards to the DataContractSerializer, are you intending to return the Entities from a WCF service call? If so, I would suggest you take a look at our stand alone WCF sample from earlier in the year. http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=1363 In general you should be able to serialize all LightSpeed entries through the DataContractSerializer. Please note if you are not using .NET 3.5 SP1, you will likely need to set up your serializer to be aware of object graphs by using the NetDataContractSerializer.
Let us know how you get on here and if we can be of some help :)
Jeremy
|
|