henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
634 stars 100 forks source link

Resolving properties creating "duplicates" #245

Closed SH1N081 closed 3 years ago

SH1N081 commented 3 years ago

When using BaseEntity reflection where the reflected class hides base properties with the "new" keyword, the property resolver will first grab the correct, new properties, but once the array of properties has been created, the base properties have been appended to the array. This will in turn cause an exception when creating (in my case) an insert query, as Dommel now attempts to created parameters for both the reflected properties and the base properties.

henkmollema commented 3 years ago

Could you provide a code example of this issue?

SH1N081 commented 3 years ago

I'll have to get back in my code and see if I can find this again. It may have been solved by the fix for the issue of reflected classes that you just merged.

Martin

On Wed, 7 Apr 2021, 19:59 Henk Mollema, @.***> wrote:

Could you provide a code example of this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/henkmollema/Dommel/issues/245#issuecomment-815111300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWIZ5D5QRKWYLI6ADPCBDTTHSMOTANCNFSM4UCD6BNA .