Is there a sample trial version of Fluent NHibernate Automapping that "just works"?

I just started learning NHibernate this week and would like to use the Automapping approach for my current project.

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

I found Example.FirstProject in NHibernate source code that uses an older style entity mapping. It was extremely valuable to me as an introduction to NHibernate, because it works right out of the box.

However, I could not find a similar working example for AutoMapping. Peter Bromberg posted a sample that looks good, but some important builds seem to be missing. He helped me solve problems, but so far it’s not working.

Then I tried to modify the Example.FirstProject program to use Automapping, but immediately ran into problems with exceptions that I simply did not understand at my current level of experience.

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

+6
fluent- nhibernate-mapping
source share
3 answers

I started a small project by doing what you asked for: a small demo demonstration of fnh concepts "in action" Free NHibernate CodePlex examples

I just started it (there will be much more code in the future), but it already has an example of initial automatic matching, so go check it and I hope it can help you.

+5
source share

Whocanhelpme , based on the S # arp architecture.

+1
source share

Shortly after I posted my question, I found Gabriel Schenker Part 3 of the series Your first NHibernate application , looking at some other SO questions with Automapper tags.

Part 3 has a sample project that creates a database (SQL Server CE or SQLite) using Automapping. This sample worked for me with absolutely no problems.

In addition, all three articles in the series are well read.

But if anyone can offer some other samples, I will still be interested.

Edit: After posting this answer, I found that the Gabriel Schenker project used an older syntax that is now deprecated.

0
source share

All Articles