views:

371

answers:

3

Has anyone gotten Fluent NHibernate to work with Castle ActiveRecord?

I am particularly interested in Automapping to configure entities for use with the ActiveRecordMediator repository.

A: 

Since ActiveRecordMediator can be used with normal nhibernate mapping it should also work with fluent nhibernate.

Torkel
how did you do it? AFAIK this just doesn't work, at least not without a lot of hacks.
Mauricio Scheffer
+3  A: 

This combo doesn't work yet. When trying to use ActiveRecordMediator on a FluentNHibernate-configured entity you'll get an ActiveRecordException complaining that you didn't call ActiveRecordStarter.Initialize() or you didn't use the [ActiveRecord] attribute.

However there is work being done on this integration. Wanna help out? I invite you to the castle dev group ;-)

Mauricio Scheffer
Indeed, thanks for the links!
defeated
A: 

How about nhydrate?

ursri
-1 Not related to Castle ActiveRecord nor Fluent NHibernate nor NHibernate. In fact I'm tempted to flag it as spam.
Mauricio Scheffer