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?
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.
Whocanhelpme based on S#arp architecture.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With