Take a look at FluentNhibernate with the AutoMapping thingie.  basically you
get the IConfiguration in a single line of code, then you can export it to
your will (or simply using it)


On Sat, Apr 25, 2009 at 10:16 PM, sturdytree <[email protected]>wrote:

>
>
> I am aware you can use HbmSerializer.Default.Serialize("Mappings",
> System.Reflection.
> Assembly.GetExecutingAssembly()) to create mapping files in a
> 'Mappings' folder for your domain classes.
> However, this requires using attributes on your classes.
>
> Does anyone know of (or where there is a list of) utilities for
> creating mapping files from a domain model (making assumptions about
> the database schema), or whether there is a function within
> NHibernate.dll to do this?
>
> Ideally I would like to create a domain model and then generate the
> mapping files, edit as appropriate and then include them in my project
> (rather than creating from scratch).
> >
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to