This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm trying to add a Column attribute to a Value object property and there doesn't seem to be a way to do it in the designer. You can add custom attrs on the public Value object property but the Column attr only works on the backing field.
|
|
|
Luke, can you clarify what you're trying to do: 1. You have a value object type, e.g. Address, with a property, e.g. StreetName, and you want to customise the column name of the StreetName property. You should be able to do this today via the Column Name setting. 2. You have an entity, e.g. Person, with a property of value object type, e.g. HomeAddress, and you want to customise the prefix applied to the HomeAddress columns (e.g. to Home_ so that they are called e.g. Home_StreetName rather than HomeAddressStreetName). This isn't currently supported in the designer but we'd be pleased to add it for you. I am guessing 2 but just wanted to check. |
|
|
Yep #2. Thanks.
|
|
|
This is now done and will be in the 23 May nightly build. Click on the "value object property" line and you will find a Column Name Prefix setting which will generate the ColumnAttribute for you. Please let us know if you run into any problems. |
|