1. Overview Flashcards
1
Q
What is an object-relational mapper?
A
A tool used to manage/convert database data from an object-oriented programming perspective.
eg. Database tables are treated as classes and database fields are treated as properties.
2
Q
What is Entity Framework?
A
An object-relational mapping (ORM) framework that enables developers to work with relational data as domain-specific objects, eliminating the need for most of the data access plumbing code that developers usually need to write.
3
Q
What are the benefits of Entity Framework?
A
- Reduction of code
- Facilitates implementing the Domain Model pattern
- Make changes to the object model in one place
- Rich query capability
- Navigation
- Completely configurable data loads
- Concurrency support
- Cache management
- Transaction management and isolation
- Code-first and database-first support
4
Q
What should you consider when deciding whether to use Entity Framework on your project?
A
- Is the project large?
- Will the project take advantage of its benefits?
- Will converting to EF produce more benefits than issues?
- Use it for the entire project or just a portion of the project?
- Which version is more appropriate?