-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WHERE clause in generated SQL does not use ColumnAttribute.Name value #6
Comments
@wesfincher What versions are you using of this library and StaTypPocoQueries? |
Nevermind, I can reproduce. Looks like it has to do with the class being a descendant and the property being an override. I'll have to dig into this; I'm not sure whether the fix will be in this library, or PetaPoco, or StaTypPocoQueries. |
Thank you for the quick response. And that's interesting, as I would expect
the SELECT clause to face the same issue if that were the only cause. I
tried stepping through code but wasn't able to identify a needed change in
the short amount of time I had available.
Thank you for looking into it!
…On Fri, May 20, 2022, 9:18 PM Aaron Sherber ***@***.***> wrote:
Nevermind, I can reproduce. Looks like it has to do with the class being a
descendant and the property being an override. I'll have to dig into this;
I'm not sure whether the fix will be in this library, or PetaPoco, or
StaTypPocoQueries.
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRRL3SZZOYAM7AA5OCCKZLVLA2VFANCNFSM5WQJ3HXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The SELECT is generated by PetaPoco, using its normal mechanisms. The WHERE is generated when StaTypPocoQueries.Core grabs the So I think the question is whether StaTypPocoQueries is able to pass me a |
Given the following entity and column definition:
and the following base class:
with the following Repository class
The following test fails:
The following exception is thrown:
The SELECT clause is generated correctly. Expected behavior is for the WHERE clause to generate using the name of the property with ColumnAttribute.Name ('EventId')
The text was updated successfully, but these errors were encountered: