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
|
Sorry for the long heading but is there a way to overcome this? I have the following autogenerated property against my database:
I have a partial class called AgentLocation which contains a property say Geometry. Of course, there is no such column in the AgentLocation table. When I try to use AgentLocations to query against the database, like so:
an exception is thrown indicating Geometry is not a valid column. True but can I get around this? Also, it looks like this IQueryable does not support Join. Is this correct? |
|
|
If you are adding custom fields (e.g. you are adding the Geometry property) you must write the property with a declared backing field and you can then apply the [Transient] attribute to the field which will tell LightSpeed to ignore it from any queries/persistence - e.g.
In terms of supporting .Join, LightSpeed's LINQ provider supports translation of .Join assuming it is actually valid to translate. Are you having a specific problem with a query where it is throwing a NotSupportedException or the like?
|
|