What is the primary purpose of implementing inheritance in a data model in Entity Framework?

  • Code reuse
  • Data migration
  • Database normalization
  • Performance optimization
Inheritance in a data model in Entity Framework primarily serves the purpose of code reuse. It allows for the creation of a hierarchy of classes where common properties and behaviors can be defined in a base class and inherited by derived classes, reducing redundancy and improving maintainability.
Add your answer
Loading...

Leave a comment

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