FlexLabs.Upsert
FlexLabs.Upsert copied to clipboard
Is it possible to have similar behaviour to OnMatched but Inserted values instead?
Is it possible to have similar behaviour to OnMatched but instead execute code if there wasn't a match but an insert instead. e.g. If it's inserted I want to update CreatedDateTime but OnMatched I want to update the ModifiedDateTime?
https://www.entityframeworktutorial.net/faq/set-created-and-modified-date-in-efcore.aspx https://github.com/n0099/TiebaMonitor/blob/290c43ccf9054481d23b7bbc7ab6e6db54d6a38a/crawler/src/Db/TbmDbContext.cs#L89