Your team is developing an audit system where every database update or insert should include a timestamp. However, you don't want to include this property in your entity classes. How would you implement this in Entity Framework Core?

  • Use Shadow Properties
  • Create a Separate Audit Table
  • Use Triggers
  • Add Timestamp Property to Entity Classes
To achieve this without including the timestamp property in your entity classes, you can use Shadow Properties in Entity Framework Core. Shadow properties are properties that are not defined in your entity classes but are tracked by EF Core for specific purposes like auditing.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *