NHibernate proxy question
-
07-07-2019 - |
Question
I have a quick question.
If I have an interface from which my class derives, I can use that interface as a proxy for lazy loading. If I have an abstract class from which my class derives, can I use the abstract class as a proxy for lazy loading?
Thx alot!
Solution
Yes, you can. If you use an abstract class it has to be either a pure abstract class (i.e. no defined method bodies) or the defined methods have to be virtual.
Relevant doc pointers:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow