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
> overwriting things I specify in the ClassMap.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
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