Review

Image

What is the Fluent API syntax to specify the table name of a class?

 

 

What syntax would you use to do the same thing with data annotations?

 

 

What two namespaces will you need to reference in your class file to use data annotations?

 

 

What does the InverseProperty annotation do?

 

 

In what method of the DbContext class do you put Fluent API configuration commands?

 

 

How do you add a configuration class to a Fluent API configuration set?

 

Congratulations! You’ve finished the chapter. Take a minute to think about what you’ve accomplished before you move on to the next one...

List three things you learned in this chapter:

Get Fluent Entity Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.