PropertyChanging and PropertyChanged always generated as virtual

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
alex4998
Posts: 1
Joined: Mon 04 Jul 2022 02:58

PropertyChanging and PropertyChanged always generated as virtual

Post by alex4998 » Mon 04 Jul 2022 03:09

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?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: PropertyChanging and PropertyChanged always generated as virtual

Post by Shalex » Tue 04 Oct 2022 15:40

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.

Post Reply