I think I somewhat have it sorted. But I find it is a deficiency of CommunityToolkit.Mvvm the ObservableObject. And I do not really want to get into the constroversy over DTO to the database and what not. That's not what this is. We're talking about hydrating models, from the ground up.
OO implements the INPC pattern among other things, allows for nice setting of properties, which I think is a huge plus, does not change a prop value unless it has to. Which in ORM and NH or EF terms, also means not upserting when it does not see a change. Anyway the events are not implemented virtual. I tried new virtual in my classes, to no avail since apparently somehow the first declaration of the event is winning. So I may either look at an Mvvm PR if possible, or just implementing my own virtual version. Of course, if I can disable lazy loading, which I do not necessarily need or want, then perhaps that is a non issue, yes? Best... Michaael W. Powell On Thursday, June 5, 2025 at 11:19:51 PM UTC-4 Michael W Powell wrote: > Hello, > > How do I work with events in mapped types. Do I need to specially instruct > the mapping to otherwise ignore those events? What is the alternative? > Declare add and remove clauses virtual? > > Best, thank you, > > Michael W. Powell > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/fluent-nhibernate/3aec1a60-43d3-4b4d-8509-c67adeaa72fbn%40googlegroups.com.
