I'm trying to set a table name convention:
var myConvention = ConventionBuilder.Class.When(
c => c.Expect(x => x.TableName, Is.Not.Set),
x => x.Table(string.Format("tbl{0}s", x.EntityType.Name))), // class Foo becomes tblFoos
fluentConfiguration.Mappings(m =>
{
...
m.FluentMappings.Conventions.Add(myConvention);
So when the table name isn't already set, it will set one.
This isn't working. Debugging, I think I've found that table name is actually already set at this point to, for example, "`Foo`", for a class named "Foo". It's as if FluentNHibernate is trying to set a table name by default even before my conventions are consulted.
Did something change in FNH 1.3?