Hide a write-only property

edited May 10
Hi!

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?

Thanks!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!