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
-~----------~----~----~----~------~----~------~--~---

Reply via email to