Otis wrote:
So in other words, you want the fields to be there, but you don't want the getter/setters for the fields to be generated? At the moment that's not possible, or you've to update the template with an <[If ]> statement which checks on the presence of a custom proprty name/value pair you defined on the field in the designer for example. That's kind of awkward to do, I admit.
In v3 we have a much more flexible system with settings we can define outside the designer, which are then settable inside the designer and which values we can use in the generated code. I'll add a request for a setting to switch off property generation for fields, so you can define that in the designer with a simple checkbox.
Yes, that's precisely what I would like to do... omit the generation of the getter/setters in the future (because I've already copied the original generated properties to a new partial class... and plan to extend those)
I'm really looking forward to v3, hopefully that you get the chance to implement that feature, it definitely would come in handy for me. If not, wrapper properties would be more manageable if you could change the visibility of the properties. Will version 3 allow for control over the visibility of the properties (public/protected/private)?
I.e. Define properties you plan on extending as protected and make the extended wrapper property public so that it's the only one property (the one people should be using) is exposed instead of 2, which makes it more confusing.
Either way, I think I'll just press on with Walaa's recommendation until v3 comes out. Thanks again.