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