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 have a ClassTableInheritance structure with one non-abstract base entity, and one derived entity.
I wish to perform some grouping, but the SQL issued is invalid
SELECT FailureDemand is the base entity Complaint is the CTI derived entity ReferenceData is a one to many association with FailureDemand The code that generates this SQL is Uow.Find<FailureDemand>().GroupBy(fdt => fdt.Product.Description) Product is SingleTableInheritance with ReferenceData
Why is the SQL joining to Complaint, as I am not trying to retrieve Complaints, only the FailureDemands ? If I manually edit the SQL by removing the join to Complaint I can get the query to return the correct results.
Thanks in advance for your help.
Patrick
|
|
|
Hi Patrick, Can you send through a small repro which exhibits this behavior (usually just a cut down version of the model you are using and the query in question is all thats needed) and we can have a look at this.
Thanks! Jeremy |
|
|
Hi Jeremy
I have sent an app that reproduces the problem through to your support email address
Cheers Patrick |
|
|
Hi Jeremy
Thanks for the fix !!!
Patrick |
|