2008-12-24 9 views

Respuesta

8

Sí.

Es absolutamente posible mezclarlos. Lo estoy haciendo en mi proyecto actual.

Mi construcción SessionFactory es como la siguiente:

 _configuration = new Configuration(); 
     _configuration.SetProperties(properties); 

     // hbm files 
     _configuration.AddAssembly(typeof(ISurveyTask).Assembly); 

...

 var persistenceModel = new PersistenceModel(...) 

     // fluent mappings 
     persistenceModel.addMappingsFromAssembly(typeof(ISurveyTask).Assembly); 
     persistenceModel.Configure(_configuration); 

Enjoy :-)

Cuestiones relacionadas