NHibernate wpf

17 views
Skip to first unread message

Luigi Clemente

unread,
Jul 26, 2011, 7:01:54 AM7/26/11
to nhusers
Hi at all,
i want to use NHibernate with wpf using the wpf databinding
capabilities, i've read a lot of articles by Fabio Maulo, Josè
Romaniello and Ayende on their respective blogs but, due to my
inexperience on NHibernate, i can't figure out how to properly inject
the notifiable behavior to both my entities and collections.
I've downloaded the uNHAddIns for the wpf support classes but i don't
know how to use it...

Paulo Quicoli

unread,
Jul 26, 2011, 7:19:51 AM7/26/11
to nhu...@googlegroups.com
Man, I develop using WPF and NHibernate, take a look in a old article of mine:

http://www.codeproject.com/KB/WPF/WPF_NHibernate_Validator.aspx

2011/7/26 Luigi Clemente <gigit...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.


H.Alex

unread,
Jul 26, 2011, 7:36:11 AM7/26/11
to nhusers
lookey here: http://code.google.com/p/heredar/

and here
http://code.google.com/p/heredar/source/browse/AssemblyToProcess/Examples/EditableObject/Scenario.cs?r=b9c1a7fe6cf19ddd6b5a7ca343859c8ff9796bf6

then all else you need is to plug in the wpfcollectionfactory from
unhaddins into nhibernate like so:
regular_config.Properties[NHibernate.Cfg.Environment.CollectionTypeFactoryClass]
= typeof(WpfCollectionTypeFactory).AssemblyQualifiedName;

H.Alex

unread,
Jul 26, 2011, 7:55:50 AM7/26/11
to nhusers
And also this :)
http://code.google.com/p/notifypropertyweaver/

As I've been told a while ago by Jose, and if you think about it I'm
sure you'll realize this is the best way to do things. :) It makes no
dependency on NH.

On Jul 26, 1:36 pm, "H.Alex" <h.ale...@gmail.com> wrote:
> lookey here:http://code.google.com/p/heredar/
>
> and herehttp://code.google.com/p/heredar/source/browse/AssemblyToProcess/Exam...

olaf

unread,
Jul 26, 2011, 3:38:41 PM7/26/11
to nhu...@googlegroups.com
You may also try this one:
Its designed for WPF applications. However, you should use MVVM pattern instead of accessing your data directly in the UI. 
 
Reply all
Reply to author
Forward
0 new messages