Which Entity Framework feature allows you to automatically validate entities before saving them to the database?

  • Change Tracking
  • Data Annotations
  • Entity Framework Core
  • Fluent API
Data Annotations in Entity Framework enable automatic validation of entities by applying attributes to entity properties, defining validation rules that are checked before saving data to the database.
Add your answer
Loading...

Leave a comment

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