I've created a partial class for my entity and added a method that should be used to set a particular property.
The problem is that other programers could use the property setter to set the value. Is there any way to throw an exception when the setter is used or any other solution ?