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
|
Hi, I am trying to expose a lightspeed entity result via a ADO.NET DataService. And I have created the following partial class to expose the identity. But I am try getting errors. I am thinking I am doing it wrong some how, as it works with linq to sql [IgnoreProperties("Application")]
|
|
|
The DataServiceKeyAttribute has to be applied to the class where the key property -- i.e. the Id property -- is declared: for some reason ADO.NET Data Services won't respect it if it's applied to a derived class. (I don't know why they chose to build it this way, but it does seem to have been a deliberate decision.) We'll be adding this declaration to the Entity base class in LightSpeed 3. (We don't want to do it in LS2 because it would create a dependency on .NET 3.5, which we're trying to avoid in LightSpeed 2.x.) Until then, we're not aware of any way to expose a LightSpeed entity via an ADO.NET Data Service. |
|
|
oh. I guess I will be waiting for 3.0. When is that coming? |
|
|
We are expecting to ship it this month, though we have a fairly heavy workload at the moment so I can't promise this for definite. |
|