I'll more or less second Dave's suggestion to use different classes for
this. Dynamic proxies and the sort are great to get everything up and
running with minimal code, but in my experience they lead to a world of
hurt in anything but the smallest projects.

Create custom built UI objects and copy whatever data you need from the
persistent classes into them. AutoMapper is your friend, and the future you
will appreciate it.

On Mon, Jun 4, 2012 at 4:59 AM, Björn Peter <[email protected]>wrote:

> Well, when using entities in subcollections of ViewModel this doesn't
> work.
>
> Any other suggestions?
>
> On Apr 26, 6:49 am, DaveW <[email protected]> wrote:
> > I'd probably leave the persistent classes alone, and just expose their
> data
> > through the ViewModel classes (which can implement INPC in the normal
> way).
> >
> >
> >
> >
> >
> >
> >
> > On Wednesday, April 25, 2012 1:59:01 PM UTC+1, Björn Peter wrote:
> >
> > > Hello,
> >
> > > we would like to use NH v.3.3 with WPF and therefore need to implement
> > > INotifyPropertyChanged and ObservableCollection. Is it still advised to
> > > implement a proxy interceptor for INotifyPropertyChanged and
> > > ObservableCollection as recommended by Ayende back in 2009 [1]? Are
> there
> > > other new options to prefer?
> >
> > > As stated NH got an own embedded proxy generator in version 3.2. Most
> > > examples show an interceptor for Castle Windsor. How do things work in
> NH
> > > 3.3?
> >
> > > Best regards,
> > > Björn Peter
> >
> > > [1]:http://ayende.com/blog/4106/nhibernate-inotifypropertychanged
>
> --
> 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.
>
>

-- 
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.

Reply via email to