This question is locked. New answers and comments are not allowed.
I am learning how to use the Fetch Strategies with OpenAccess, and the way it works is that I create the strategy I want and then assign it to the context. Then I make my queries and things will happen as expected.
However what am I supposed to do the clear the fetch strategy when I am done with it, since we use the same context for the life of a single web request? I assume if I leave it attached, if another piece of code uses the same context to make a query, it will end up loading the data with the same fetch plan, which may or may not be what I want.
I am thinking that I should probably just reset the fetch plan after call my query to get the objects I am looking for out of the database, by just assigning a null to the context.FetchStrategy field?
However what am I supposed to do the clear the fetch strategy when I am done with it, since we use the same context for the life of a single web request? I assume if I leave it attached, if another piece of code uses the same context to make a query, it will end up loading the data with the same fetch plan, which may or may not be what I want.
I am thinking that I should probably just reset the fetch plan after call my query to get the objects I am looking for out of the database, by just assigning a null to the context.FetchStrategy field?