Component convention to set the entire column name not just the prefix

15 views
Skip to first unread message

Dewy

unread,
Sep 12, 2012, 5:11:27 PM9/12/12
to fluent-n...@googlegroups.com
I have the case where I am mapping several components. Never would I have the same type of component in its owner.
All the components inherit from the same base type and all have one string property called "Value" that I want to persist.

So in an object I may have Colour and Food components that would, by standard conventions get mapped as the following columns:

ColourValue
FoodValue

I would really like to be able to drop the Value post fix and just use the prefix to leave me with the following columns:

Colour 
Food

Is this possible?

Dewy

gleb Chermennov

unread,
Sep 14, 2012, 4:44:32 PM9/14/12
to fluent-n...@googlegroups.com
In current Fluent NHibernate release (1.3) there's no such opportunity out of the box - although in next version you'll be able to extend column names from property names (if you have a prop. called Test, API allows to add something to the name, e.g. call it "_Test"). The feature you're looking for is currently implemented, just not for component mappings

четверг, 13 сентября 2012 г., 1:11:27 UTC+4 пользователь Dewy написал:
Reply all
Reply to author
Forward
0 new messages