O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review

Image

Based on what you’ve learned about code first conventions and data annotations, can you answer these questions?

As a general rule, to instruct Entity Framework to create a table in the schema, what do you create, and where do you reference it as a DbSet<>?

 

 

Can data annotations be used in conjunction with Code First conventions, or are they mutually exclusive?

 

 

To use data annotations in your class definitions you must set a reference to a specific dll. What is it?

 

 

The InverseProperty annotation is used in what situation?

 

 

 

If multiple annotations need to be applied to a single entity, how can they be combined?

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required