Unless I am misunderstanding something and using this incorrectly the functionality of this method seems to be off
var persistenceModel = AutoPersistenceModel.MapEntitiesFromAssemblyOf<Employee>() .Where(t => t.Namespace == "Domain.Business.Auto") .WithConvention(convention => convention.GetPrimaryKeyName = prop => prop.Name + "yoyoyo") This code will generate the sql to Select tableName.Idyoyoyo instead of Select tableName.Employeeyoyoyo, shouldn't this method be based off the object type name not the property that is the Id field itself? When I asked about the GetTableName convention I see the change Andrew made which worked exactly how I expect it to: public Func<Type, string> GetTableName = prop => String.Format ("[{0}]", prop.Name); however I see right below it for GetPrimaryKeyName public Func<PropertyInfo, string> GetPrimaryKeyName = prop => prop.Name; Shouldn't this actually be public Func<Type, string> GetPrimaryKeyName = type => "Id"; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---