-
Notifications
You must be signed in to change notification settings - Fork 302
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
Null reference exception when using FetchOneToMany #19
Comments
Hey Keven, This looks like a bug from first look. It is related to the change that was done so that if you are doing a many to one, and the one has all null values then the object will be set to null. I will have a look at it today and hopefully have a solution for it. Cheers, |
Hi Keven, Check out 2.1.25-beta on NuGet and let me know if it works. Cheers, |
Adam, that did the trick. Thanks! |
Excellent. |
Having the same problem, any new release date? |
Can create a release today probably. |
This has been release in 2.1.27. |
Thats great thnx! |
I am getting an exception when running a OneToMany query where there are no 'many's'.
For example, I have the 2 following pocos:
and here is the query I am running:
The manyKey lambda passed in is causing the problem... when there are no ProductCategories in the database, it gets a null reference exception because null is passed in for 'pc' into the lambda. When there are ProductCategories in the database, then the query works great.
Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered: