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'm not sure if this is a LinqPad issue or an issue for the LightSpeed driver for LinqPad. I have a domain object persisted using LightSpeed. It has an extra get only property that does not get persisted. When I do a query in LinqPad that returns the domain object in question the property gets accessed. This is a problem because in the LinqPad query it is invalid to access the property and an exception is thrown. Why would LinqPad be accessing the property if it is not part of the LightSpeed model?
Cheers, Felix |
|
|
Probably LINQPad is trying to display the object in its grid view. The grid view contains a column for each property. To populate the column for your get-only property, it has to access that property. |
|
|
Right. That figures. I'm converting the misbehaving props to methods to avoid the problem. Cheers, Felix |
|