When I was configuring entities on a project, I came across ValueGeneratedOnUpdateSometimes on the PropertyBuilder. The description says
Configures a property to have a value generated under certain conditions when saving an existing entity
However there is no solid information about how to set "certain conditions" so the value gets generated.
Is there anybody who has some information about this?
It is used for properties mapped to the same column with entity types sharing a table.
When you change the value of one of these properties and call SaveChanges the value for the other is "generated" by propagating the value from the first one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With