Lazy Loading with Ninject

Posted by devlife on Stack Overflow See other posts from Stack Overflow or by devlife
Published on 2010-03-29T13:19:51Z Indexed on 2010/03/29 13:23 UTC
Read the original article Hit count: 429

Filed under:

I'm evaluating ninject2 but can't seem to figure out how to do lazy loading other than through the kernel.

From what I can see that kind of defeats the purpose of using the [Inject] attributes. Is it possible to use the InjectAttribute but get lazy loading? I'd hate to force complete construction of an object graph every time I instantiated an object.

© Stack Overflow or respective owner

Related posts about ninject