On Mar 16, 8:09 am, James Gregory <
jagregory....@gmail.com> wrote:
> There's a TableName property in IClassMap, so you could do: return
> string.IsNullOrEmpty(target.TableName)
> Similarly there's a GetColumnName() method on IIdentityPart.
>
> On Mon, Mar 16, 2009 at 3:07 PM, JohnRudolfLewis <
JohnRLe...@gmail.com>wrote:
>
>
>
>
>
> > I have a domain entity class with a silly long name. My
> > IClassConvention and IIdConvention end up generating names that are
> > too long for my database, and I get identifier too long errors. So my
> > first thought was to specify a WithTable to change the name to an
> > abbreviation, and to specify a column name with my Id.
>
> > But my IClassConvention and IIdConvention overwrite what I specify in
> > the ClassMap.
>
> > So, I need to add some code to the Accept methods. The problem is, I
> > don't see an obvious way to determine if I had already specified a
> > table or column name in my ClassMap.
>
> > Unless I am missing something obvious, please add a mechanism to avoid