0

am new to StackOverflow..

I am developing a website which requires extensive ORM...using asp.net MVC.

I have been trying to research and am still not clear.

Do u think using FluentNHibernate would be a good choice as a tool...or is there a better option?

1

2 Answers 2

3

FluentNHibernate is really nice. But it's semi redundant now as NHibernate has its own fluent mapping library. So just use NHibernate out of the box.

It doesn't seem to be getting maintained as it once was.

Sign up to request clarification or add additional context in comments.

1 Comment

Agreed. To complete this answer, I'll refer to the mapping-by-code guide I've written: notherdev.blogspot.com/2012/02/…. It compares FNH to mapping-by-code many times, so you can know the difference.
0

I've actually tried the built in mapping for nHibernate and I didn't have much luck with them, and ended up going back to fluent nHibernate for now. The mapping is well documented in the link provided by Keith (it's what I used), but while the replacement for FluentNHibernate's mapping is there I have yet to find out how to achieve what FluentNHibernate could do for the configuration. How to you add the nHibernate mappings by code to the mappings of nHibernate?

3 Comments

See Fabio Maulo's examples how to add mapping-by-code mappings: fabiomaulo.blogspot.com/2011/04/…
Or maybe this one is better: fabiomaulo.blogspot.com/2011/07/…
K, I'll take a look at that and try it out, hopefully it'll help me get rid of one more dependency.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.