EF Core 6.0 now supports IsTemporal() which allows you to use an MS-SQL history table. I use DbContext.OnBeforeSaving() to validate certain fields before I commit the data. If the table is temporal then I would like to save the UserId of the person who updated this line.
How do I test if the table is temporal? (i.e. by psudo-code below)
foreach (var entry in ChangeTracker.Entries<MyBaseEntityType>())
{
// if (entry is Temporal)
// set entry.Entity.UserID from IHttpContextAccessor.HttpContext.User
}