[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread Martin Hornagold
fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Martin Hornagold Sent: 25 March 2009 16:27 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention James/Billy, Attached is a pa

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread Billy
ing towards James' approach of targeted > > > conventions with prescriptive class names . > > > > So in S#arp's Northwind sample we should have: > > > > IdentityIdConvention > > > > AssignedStringIdConvention > > > > Rather than just Prim

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread James Gregory
should also Lazy and NonLazy class conventions which would again > > reduce the need for overrides and are more maintainable. > > > > Just my 2 pennies > > > > Martin > > > > From: fluent-nhibernate@googlegroups.com > > [mailto:fluent-nhibern...@googlegroups.c

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread Billy
ons. > > There should also Lazy and NonLazy class conventions which would again > reduce the need for overrides and are more maintainable. > > Just my 2 pennies > > Martin > > From: fluent-nhibernate@googlegroups.com > [mailto:fluent-nhibern...@googlegroups.c

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread Martin Hornagold
groups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory Sent: 25 March 2009 10:02 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention Ah, damn. I can't re-order them. The conventi

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread James Gregory
Ah, damn. I can't re-order them. The conventions can't be applied before the overrides because the overrides may alter the underlying classmap, which could result in some conventions not being applied when they should be. I'd go with my previous suggestion of doing this exclusively with conventions

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-25 Thread James Gregory
Just looked into this, it seems overrides are being applied before conventions. So the changes get overwritten by the conventions... The thread you linked to is a bit of a bigger issue, but for this one I should just be able to reorder when the overrides get applied. An alternative is to not use ov

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-24 Thread James Gregory
Yep, something smelly is going on here. I'll investigate. On Tue, Mar 24, 2009 at 8:13 PM, Billy wrote: > > Looks like this is related to the issue described at > > http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/b866ce932b2a4f89 > > Incidentally, if I modify the class conv

[fluent-nhib] Re: .WithTable in IAutoMappingOverride doesn't override IClassConvention

2009-03-24 Thread Billy
Looks like this is related to the issue described at http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/b866ce932b2a4f89 Incidentally, if I modify the class convention to ignore the Region class, then the override works just fine; e.g., public class TableNameConvention : IClas