Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Mysql .Net multiple includes error (no replies)

$
0
0
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......

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>