Entity Framework Community Standup - SQL Server Temporal Tables and EF Core 6

preview_player
Показать описание
Learn about the new support in EF Core 6 for temporal tables, including creating them from migrations, transforming existing tables into temporal tables, querying historical data and point-in-time restore.



#efcore #sqlserver #temporaltables
Рекомендации по теме
Комментарии
Автор

What tool is he using to get to the Debug View @31:47? How to I access that window in Visual Studio?

jaredklements
Автор

(joined after intro and missed the fact that it queries the built-in! SQL-Svr feature, grrrr) Had recently discovered temporal tables in a feasibility analysis. This EF-features gives it a push forward to be applied 👍🏼

gregcyrus
Автор

@ajcvickers At 44:06 you say "When you use temporal tables SQL Server doesn't support CASCADE DELETE..". That is true in the lowest mssql version this feature supports (SQL 2016), but SQL 2019 does support it. I'd like to use temporal tables for "user, role, permission" tables with audit for "UserRole" mapping table, especially to track when roles are removed/added to a user. Currently using EFCore and SQL 2019. What's the best forum to clarify such support? GitHub issue?

ChrisTracy
Автор

The concept of temporal tables is great but the implementation sucks. The history table does not contain any indexes from the table it contains history for. So if I query history for a specific ID and the history table does not contain an index on that column is bad design.

UnknownMoses