A good place to start is Conventions<http://wiki.fluentnhibernate.org/show/Conventions> on the wiki, and there's also Converting to New Style Conventions<http://wiki.fluentnhibernate.org/show/ConvertingToNewStyleConventions>. If those don't get you going, just let me know what you're stuck on.
On Tue, Jul 21, 2009 at 12:09 AM, andypike <[email protected]>wrote: > > Hi all, > > I've been using a relatively old version of FNH and have today > upgraded to the latest version with NH2.1GA. I just need a little help > upgrading part of my code. This is what I currently have: > > var model = new AutoPersistenceModel > { > Conventions = > { > GetPrimaryKeyName = (type => "Id"), > GetForeignKeyNameOfParent = (type => type.Name + > "_Id"), > GetForeignKeyName = (info => info.Name + "_Id"), > GetTableName = (type => "`" + type.Name + "`"), > GetManyToManyTableName = ((child, parent) => > parent.Name + "_To_" + child.Name) > } > }; > > Of course with the upgrade the Conventions has now changed somewhat, > could someone help me out or point me in the right direction? > > Thanks in advance > > Andy > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
