Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Fluent NHibernate Automapping sample project that "just works"?

I just started looking at NHibernate this week, and would love to use the Automapping approach on my current project.

I'm working with Fluent NHibernate 1.0.0.594, which I downloaded a few days ago.

I found the Examples.FirstProject in the NHibernate source code, which uses the older style entity mapping. This has been tremendously valuable for me as an introduction to NHibernate, because it works right out of the box.

However, I've been unable to find a similar standalone working example for AutoMapping. Peter Bromberg posted a sample that looks good, but it seems to be missing some important assemblies. He's been helping me try to resolve the problems, but it's not working yet.

Next, I attempted to modify the Examples.FirstProject program to use Automapping, but immediately ran into problems with exceptions being thrown that I just don't understand at my current level of experience.

Can anyone point me to an Automapping sample project that is known to work with the latest NHibernate code?

like image 868
Tom Bushell Avatar asked Oct 29 '09 14:10

Tom Bushell


2 Answers

I've started a small project doing what you've asked for: small sample demoing the fnh concepts "in action" Fluent NHibernate samples CodePlex project

I just started it (there would be much more code there in the future), but it has already initial auto mapping example so go check it out and I hope it could be of some help to you.

like image 195
Nikola Malovic Avatar answered Oct 18 '22 08:10

Nikola Malovic


Whocanhelpme based on S#arp architecture.

like image 29
Cherian Avatar answered Oct 18 '22 07:10

Cherian