views:

282

answers:

1

Is it possible to use NHibernate XML mapping files instead of Fluent NHibernate in S#arp Architecture framework?

+2  A: 

Yes you can. Take a look at the Northwind sample app's NHibernate.config (the commented mapping element and the related comments)

Mauricio Scheffer
I had to comment out the following lines:new AutoPersistenceModelGenerator().Generate()in InitializeNHibernateSession() in file Global.asax.cs
Khalil Dahab

related questions