On Tue, Oct 6, 2009 at 11:09 AM, Igor Vaynberg <[email protected]> wrote:
> so if i have
>
> class personeditor extends panel {
>   public personeditor(string id, person p) {..} }
>
> instead of
>
> class personeditor extends panel {
>   public personeditor(string id, imodel<person> p) {..} }
>
> how do i implement the lazy loading behavior if the person has to be
> loaded from the database?

You could force the user to use dynamic proxies if they want lazy
loading so that if the person object is accessed, it goes and gets the
data from the database.  Doesn't that sound easier to you? ;)

Reply via email to