I have same problem: sharparch + Parent - child relationship with my
object tree that derives from Entity -> joined-class tables are not
pluralized.
As I read in this and "IJoinedSubClassConvention never called" post, I
added the convention implementation as:
fluent-nhibernate@googlegroups.com
> [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory
> Sent: 27 May 2009 09:00
> To: fluent-nhibernate@googlegroups.com
> Subject: [fluent-nhib] Re: nhibernate subclass problem
>
> That'll be something for the #arch guys,
)
{
target.WithTableName(Inflector.Net.Inflector.Pluralize(target.EntityType
.Name));
}
}
From: fluent-nhibernate@googlegroups.com
[mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory
Sent: 27 May 2009 09:00
To: fluent-nhibernate@googlegroups.com
Subject: [fluent-nhib] Re
That'll be something for the #arch guys, I believe.
On Tue, May 26, 2009 at 10:01 PM, Rui Silvestre wrote:
>
> from what I tested the problem is solved... the generated mapping file
> was missing the column names and now is OK!
>
> still there is another issue to be solved: the plurar table names
from what I tested the problem is solved... the generated mapping file
was missing the column names and now is OK!
still there is another issue to be solved: the plurar table names that
i'm specifying by default are not being applied to the subclassed
entity... in my database I need to have a Chi
I've just this minuted committed a change that should remedy this problem.
Let me know if updating to the latest trunk fixes things.
As for the convention you mentioned, you want an IManyToManyConvention, and
just set the parent key in there.
On Tue, May 26, 2009 at 8:24 PM, Rui Silvestre wrote: