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 have an entity called Item, with a Status property. Now when changing that property, I want an entry automatically written to an ItemLog entity. What is the best way of doing this? Right now, I've set the Generation attribute in Item to "FieldOnly" and in the partial class I've done this: public ItemState Status It works, but if there is a better/more robust way, I'd really like to know that. :) Thanks!
|
|
|
That is the best approach for adhoc modifications, but if this is a "templated" approach which you want to apply at a project level you can update the code generation templates to include this as a standard aspect of your entity settors. Have a read through Ivans post about this - http://www.mindscape.co.nz/blog/index.php/2009/09/16/customising-lightspeed-entity-templates/ for the details on how to achieve this :)
Jeremy |
|