2008-12-24 5 views

Antwort

8

Ja.

Es ist absolut möglich, sie zu mischen. Ich mache das bei meinem aktuellen Projekt.

Meine Session Konstruktion sieht ungefähr so ​​aus:

 _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); 

Genießen :-)