Page 1 of 1

PropertyChanging and PropertyChanged always generated as virtual

Posted: Mon 04 Jul 2022 03:09
by alex4998
It looks like a bug, but I hope maybe there is a setting that I missed that controls this behavior. When I created classes I specified "Inheritance Modifier" as "Sealed". This is what I would like to have. At the same time, I'd like to have PropertyChanging and PropertyChanged events on the classes and I specified that in the beginning when I created the diagram.
Now, when generate the code the classes generated sealed but those events along with SendPropertyChanging and SendPropertyChanged method are generated as virtual, and the methods are protected. Is there a way to fix it besides either removing sealed modifier or those events?

Re: PropertyChanging and PropertyChanged always generated as virtual

Posted: Tue 04 Oct 2022 15:40
by Shalex
You are working with EF Core and C#, aren't you? We have reproduced the described behavior and will notify you about the results of our investigation.