Closed ms666 closed 6 years ago
I created a sample based on your data and I couldn't reproduce your results. Give it a try.
I've added the TransactionHelper class - as in the description - and everything works fine. In the example code. In my project, it works properly with a direct call. Using the TransactionHelper class causes errors - I need to investigate it more carefully. Anyway, I have a mistake, your code is OK.
I apologize for the trouble and greetings
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.
Summary of the issue
returning incorrect rows in this specific case - or my error :(
Environment
Visual Studio 2017 Community .NET Core 2.0 PostgreSQL 10, Windows, 64bit Win 10 Pro 64bit
Example code/Steps to reproduce:
table:
example data:
DBContext:
Getting data:
Output:
In this case, IdMainObject, IdObject point to the id_payment_type in the array Change of the second parameter (language) causes returning the correct line, changing the IdObject with the constant language returns one row all the time: first call:
another with diffrent IdObject:
and change language:
and again another calls with diffrent IdObject:
I tried to modify the table - the main key was IdPaymentType and language but the effect was identical ...
But the downloading of lines immediately after the ID works fine