Entity Framework integrates with ________ to enable automatic validation based on model annotations during the model binding process.

  • ASP.NET Core
  • ASP.NET MVC
  • FluentValidation
  • DataAnnotations
The correct option is option 4: DataAnnotations. Entity Framework integrates with DataAnnotations to enable automatic validation based on model annotations during the model binding process. DataAnnotations provides a set of attributes that can be applied to model properties to specify validation rules. These annotations are used by Entity Framework to perform automatic validation during model binding in ASP.NET MVC and ASP.NET Core applications. ASP.NET Core and ASP.NET MVC are web frameworks, and FluentValidation is a third-party validation library that can also be used with Entity Framework, but it is not integrated by default for automatic validation based on model annotations.
Add your answer
Loading...

Leave a comment

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