Hello,

I have problems applying a convention conditionally. A full description of 
the issue is on SO 
(http://stackoverflow.com/questions/13401081/fluent-nhibernate-table-naming-convention-not-working).

The following convention worked just fine with Fluent NHibernate 1.2.1 but 
has stopped working with 1.4.1.1.

    public class TableNameConvention : IClassConvention, 
IClassConventionAcceptance
    {
        public void Accept(IAcceptanceCriteria<IClassInspector> criteria)
        {
            criteria.Expect(x => x.TableName, Is.Not.Set);
        }

        public void Apply(IClassInstance instance)
        {
            var tableName = instance.EntityType.Name.Pluralise();

            instance.Table(tableName);
        }
    }

The issue must lie with the Accept() method - but I cannot figure out why. 
Can anyone help?

Kind regards,
Øyvind

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/fluent-nhibernate/-/74rvhptshfQJ.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to