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
|
We have a class that derives from Inteceptor where we are overriding CreateQueryFilter so that we can filter our records by organization Id.
When we use a Lightspeed context:
The query for OrganizationEmailTemplates does not call the CreateQueryFilter whereas the PersonProfiles does. I cannot see anything in the model XML or classes that is glaringly different. Also, how/where can I inspect the actual SQL select statements. TIA...Tom |
|
|
Hi Tom, Sounds like a bug - is it possible to send us through a small repro project for the above? There are cases where filtering is not applied which presumably will be whats occurring in the first statement but Id like to understand how this is being triggered based on your model and query since it does seem incorrect. In terms of inspecting the SQL statements that are being generated you can use a logger within LightSpeed to achieve this - the statements wont be exactly what is sent as we stringify the parameter values when emitting the log entries where as they are sent to the database in typed form via the underlying ADO.NET provider but otherwise it will be the SQL which is executed. Have a read of http://www.mindscapehq.com/documentation/lightspeed/Testing-and-Debugging/Logging for some more info on setting up a logger.
|
|
|
Hi Jeremy, I'm working on creating a project for you. Can you email me your dropbox or other preferred method. Thanks, Tom |
|
|
Hi Tom, You can email it through to us at support at mindscape.co.nz or pop it up on a share somewhere and email us through a link.
|
|