Disable setter for a property

Posts   
 
    
methodman
User
Posts: 194
Joined: 24-Aug-2009
# Posted on: 02-Jun-2011 10:50:39   

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 ?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 02-Jun-2011 11:26:20   

Not supported yet in LLBLGen Framework. ALthough it's supported by our designer for NHibernate.