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
|
Is there a way to set up a property to have a getter but on a setter (or a private setter) in lightspeed? Thanks, Eric |
|
|
You can do this if you handwrite the property, but it's not supported by the designer. To keep the property in the designer (for viewing and database sync purposes), but handwrite the code, select the property and set the Generation option to None or Field Only, and implement the property (and, if you selected None, the backing field) in a partial class. Note that if you intend for the value to be mutable, just not exposed, you should use a private setter rather than accessing the backing field directly. All changes to persistent properties must go through the Entity.Set method so that LightSpeed can update the entity state, raise appropriate events, etc. |
|