Look into C.AR.Tests.Internal for how to get the generated XML. Ayende has
also written a blog post on how to use AR types in NHibernate, so please
search his blog.

If you want to go the GetXmlMappings()-path, I'd be happy to apply a patch
for that.

-Markus

2009/8/10 Tyler Burd <tb...@cudc.org>

>  Hi all,
>
>
>
> Is there a way to use ActiveRecord to generate the mapping xml to use with
> an existing nhibernate configuration?  I want to use raw NHibernate for a
> project, but I would really like to be able to use the AR attributes to
> generate the mappings.  I’m looking for something like this:
>
>
>
> var xmlStrings = ActiveRecordStarter.GetAllMappingXml()
>
>
>
> I’d like to do this for a couple of reasons:
>
> 1.       It makes integrating with existing projects easier.  I can map my
> domain classes with attributes and add the xml to the existing NH
> configuration.
>
> 2.       I think the AR attributes are superior to
> NHibernate.Mapping.Attributes (having to explicitly specify the order of
> attributes is a pain).
>
>
>
> Is this possible?  Thanks!
>
> -tyler burd
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-users@googlegroups.com
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to