Hide a write-only property

edited May 2018

One of my entity classes (EF6, code-first) has a (not-mapped) public helper property which is write-only, i.e. it doesn't have a getter, but only a setter method.

Though it is marked as [NotMapped], LinqPad tries to display a column for it but shows an ArgumentException for every row saying "Property get method not found".

I also tried to apply the [Browsable(false)] attribute to that property, but no change.

How can I make LinqPad ignore that property?

Sign In or Register to comment.