cyberjoe2 Posted January 6, 2007 Posted January 6, 2007 I'm looking for a lazy loading solution in c#.The idea is, to have a kind of object factory, which will be responsible for creating my entity objects.When a property of such an object is accesed and it is not yet loaded, the factory(or a magic watcher) will be able to pause the execution flow for a while (maybe that step is not necessary)load the missing data (don't know how to specify, from where to load that data----maybe via attributes) andreturn to the flow.My entity objects, do not have a possibility to load the missing data by themselves, because theyare only data containers having private members, which are accessible via public properties.These objects need to be filled with their data from outside, and therefore many lazy loading solutionswon't work here.Maybe anyone of you knows the solution for my problem?Thank You in advance!Greetz!cyberjoe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now