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
|
hi - we've been asked to name db utc columns as [ColumnNameUtc]. even system required columns...
cheers justin |
|
|
*ahem* . found it. i guess that would be an INamingStrategy i'm after then... :)
|
|
|
I believe you can do this by applying ColumnAttribute to the _createdOn and _updatedOn fields. I haven't tested this but it should be worth a try (if you go this way, let me know whether it works or not!). However, if this is a database-wide policy, a better bet is to implement INamingStrategy. You'll need to provide custom implementations of GetCreatedOnColumnName and GetUpdatedOnColumnName; everything else can just return defaultName. Then set LightSpeedContext.NamingStrategy. This will save you having to remember to set ColumnAttribute all over the place. |
|