These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Nhibernate with WPF
PostPosted: Wed Oct 15, 2008 6:54 am 
Newbie

Joined: Wed Oct 15, 2008 6:45 am
Posts: 2
Hi All,
im a new one user of Nhibernate and i will use it in my new project with WPF.
I will ask you some informations,advice ,examples about if it is possible or not or there is incompatibility between them and else???
Im poor of knowledge so sorry if my question would be foolish.
I wish you happy time.
Bye BYE


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2008 8:34 am 
Newbie

Joined: Thu Dec 13, 2007 3:13 pm
Posts: 9
i currently use nhibernate as persistence layer for a wpf app where nhibernate persists my business objects to a sql ce database.
i used a repository to read the entities from the database into a ObservableCollection<T> which handles the rest if you want to interact with wpf.
all i had to do was adding an eventhandler to the collection's CollectionChanged event where i stored /deleted the entities via nhibernate from database when they were added or removed from the observablecollection.
it gets more problematic when you want to transfer your nhibernate entities via wcf as nhibernate substitutes normal IEnumerables with non-serializable stuff that makes it a mess to simply send them over the wire.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 17, 2008 9:23 pm 
Newbie

Joined: Wed Oct 15, 2008 6:45 am
Posts: 2
Thanks jkersch,
i been waiting an answer 'cos i must study so much and an advice is so useful for me.
I saw ObservableCollection<T> but i tried some trouble infact i been looking also for IBindingList<T> to see which of them was easier for me and in same time send back me less trouble .
My future project would be a a software used from 10 employees more in the same time connecting to the server and handle the database and so on so i will develop a stable project ...
However do you have some example to show me ???
Thanks so much again and i wish you good work.
Bye


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.