Search code examples
c#nhibernatefluent-nhibernatecastle-activerecord

How to convert Castle Activerecord to pure NHibernate or Fluent NHibernate?


I'm going to refactor a growing project from using Castle Activerecord to pure NHibernate or Fluent NHibernate with Service/Repository pattern and POCO.

What would be an easiest way to obtain hbm xml from existing Castle Activerecord model?

Another question, is it possible to convert hbm to Fluent NH and vice versa?


Solution

  • http://stw.castleproject.org/Active%20Record.Configuration%20Reference.ashx

    You can also output nhibernate mapping files to the AppDomain.BaseDirectory.

    <activerecord isDebug="true"><config></config></activerecord>

    I think that should give you the mapping file in your application directory