简体   繁体   中英

Oracle Error - Entity Framework - Multiple Include statements

I have multiple 'Include' with 'Select' statements on an Entity Framework Object:

var dbCustomers = conn.TCUSTOMERs
                      .Include(c => c.CodingTrees.Select(t => t.CodingVDNs))
                      .Include(c => c.CodingTrees.Select(t => t.CodingCategories))
                      .ToList();

I get this Oracle Exception:

Oracle 11.2.0.2.0 unterstützt APPLY nicht

Oracle doesn't support 'APPLY'.

Is there any workaround?

My Workaround was

conn.Configuration.LazyLoadingEnabled = false;

conn.TCODINGCATEGORies.Load();
conn.TCODINGGROUPs.Load();
conn.TCODINGKEYs.Load();

dbCustomerList = conn.TCUSTOMERs.Include(c => c.CodingTrees.Select(t => t.CodingVDNs)).ToList();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM