views:

42

answers:

3

I have a lot of classes and this is a lot of work to do the XML mappings.

+4  A: 

Yes, nHibernate can be used without XBM files.

There is a fluent interface for configuration and mapping, which should give you a more type safe way to map your classes.

You can use the auto mapping feature and fall back to fluent mapping as needed.

Oded
@Oded, you've answered two of my answers tonight. Thanks for that
Am
"However, you still need to do the mapping." FNH has thing called auto-mapping. It is possible to avoid manual mapping. Doing that right now with huge success. http://wiki.fluentnhibernate.org/Auto_mapping
Arnis L.
@Arnis - Thanks for the tid-bit. Wasn't aware of this feature. Answer updated.
Oded
You can also use nhibernate attributes. Of course, what this does is serialize the XML files in the background in a memorystream... But it's much more convenient than writing the XML by hand.
Quandary
+1  A: 

It's possible to use Castle ActiveRecord too. It does not require mapping hbm files.

afsharm
A: 

All mentioned technologies are creating XML under the cover. The only framework that maps entities directly without XML is ConfORM. But you can use it only with NHibernate 3.

Sly