dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.53k stars 3.13k forks source link

Cosmos: Honor ValueGenerated #23729

Open AndriySvyryd opened 3 years ago

AndriySvyryd commented 3 years ago

It would avoid setting a property if it is currently assigned the default value.

ajcvickers commented 1 month ago

@AndriySvyryd In what way is ValueGenerated not currently honored by the Cosmos provider?

AndriySvyryd commented 1 month ago

Cosmos doesn't call GetBeforeSaveBehavior() and GetAfterSaveBehavior() to determine how a given property should be handled.