Not really, it can't.The problem is that you don't have good proxy support in .Net, that is, we don't have anything in the CLR level. We have to deal with the same constraints as all IL code has to deal with. This means that I can't just create a proxy for any random type without meeting a ctor args.
If you really want to get that, you can provide your own persister, but truly this is getting complex 2008/12/30 Greg Young <[email protected]> > The issue can be worked around but can get fairly complex. > > 2008/12/30 Ayende Rahien <[email protected]>: > > Proxies > > > > On Tue, Dec 30, 2008 at 11:33 PM, Krzysztof Koźmic > > <[email protected]> wrote: > >> > >> Greg Young pisze: > >> > >> Fabio this discussion has already happened and I prefer to not restate > >> the same positions as before but ... in terms of insuring correctness > >> assuming that data from the database is correct is a nefarious at best > >> course of action. > >> > >> > >> True, especially if you consider schema changes or access to DB > bypassing > >> the app. > >> I mean, aside from how NH is currently implemented - how is having only > >> non-default .ctor and required value type dependencies a bad idea? > >> > >> Krzysztof > >> > >> On Tue, Dec 30, 2008 at 11:31 AM, Fabio Maulo <[email protected]> > >> wrote: > >> > >> > >> 2008/12/30 Greg Young <[email protected]> > >> > >> > >> To not be able to insure validity upon construction is a very large > cost. > >> > >> > >> Really not for me; the default ctor is private and used only for upload > >> from > >> persistence. > >> -- > >> Fabio Maulo > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > -- > It is the mark of an educated mind to be able to entertain a thought > without accepting it. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
