Entity Framework 6: How to Prevent Tracking Changes When Manually Setting Navigation Property?
I’m using Entity Framework 6 and have an Order entity with a navigation collection property for Products. My goal is to load an Order with tracking enabled but load the Products separately with additional filtering. After loading the Order and the relevant Products, I manually set the Products property on the Order (i.e., order.Products = loadedProducts).