This one has me stumped.
I have a Customer and Order entity. the Customer can have many Orders.
Where the Customer has 10,000 orders when I create a new Order and set the Customer property (Order.Customer = customer) there is a LONG delay (20s of seconds). It appears that the context is loading all 10,000 orders before adding this new one.
I am not currently using FKs directly which I suspect may help.
Any ideas how I can improve matters without a massive refactor?
Cheers.