Hi, im using mysql.data.entity 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:
ctx.Address
.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......
Here is the code snippet:
ctx.Address
.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......