Mysql .Net multiple includes error
Posted by: jean muyuela
Date: March 10, 2017 03:50AM

Hi, im using v 6.9.9 connector. I migrated from microsoft sql to Mysql and im getting a null object reference problem when i used multiple includes.

Here is the code snippet:

.Include(a => a.Child1.Select(t => t.GrandChild1))
.Include(a => a.Child2.Select(t => t.GrandChild2))
.Include(a => a.Child3)
.Include(a => a.Child4)

If i remove any of the first 3 includes, it works fine.

I been searching for solution and i have seen people with similar problem but zero solution since 2015 lol. Any ideas? or point me somewhere. thanks.

I really think moving to mysql from sql is a bad idea but i have to do what i told so......

Options: ReplyQuote

Written By
Mysql .Net multiple includes error
March 10, 2017 03:50AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.