Log Data Changes in Entity Framework - Part 3 - Ignore, Reference, SQL Server JSON & Testing

preview_player
Показать описание
We have integrated the ability log data changes in Entity Framework, but we need to make a few changes.

To think about database and table size, we need to ignore properties that we don't wish to log data changes to.

As well, if an entity is related to a reference, then we need to able to log data changes for that.

Then, we will look at SQL Server's JSON functionality, so we can translate keys in a JSON string to SQL columns so we can create a SQL query.

Lastly, we will look at the importance of testing in an application like this.

📖 Learn .NET and C# with our online courses 📖

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

Another question that's on my mind: have you implemented anything like this where you could revert to the previous update? Like a rollback button for each change recorded.

markachternaam
Автор

If you want the data to be returned as data columns through the OPENJSON statement, why not store it in the SQL Server as column based data instead of JSON?

markachternaam