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
Wrong values mapped to properties when properties have the same names #569
Comments
I experience a similar issue with an entity called
Output:
As you can see, querying the Parents directly works fine - but querying the children, including their parent, PS: I've been using NPoco for many years, but started looking for good alternatives recently (without success) because it looked like this project was abandoned. So I'm really happy to see again some activity and a new version coming up! Keep up the good work!! |
Is in v5 alpha-5 |
When using a poco with a combination of inheritance and a nested class (complex mapping) NPoco maps incorrect values into properties having the same names (Id in my case).
Tested on SQL Server 2017 using .NET Core 3.0 and Npoco versions 3.9.4 and 4.0.2.
To reproduce create a .NET Core Console application and replace Program.cs with the following code:
Create a SQL Server database named npoco and run the following sql script to create the tables
The output when running this application is:
The text was updated successfully, but these errors were encountered: