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 entity state entries and change-tracking in Entity Framework, can you answer the following questions?

The possible states of an entity are represented by which enumeration class?

 

 

What are the two change-tracking mechanisms in Entity Framework, and how do they differ?

 

 

What method do you call to retrieve the state entry for a specific entity when you’re using the DbContext API?

 

 

How about when you’re using an ObjectContext?

 

 

What method do you call on a context in order to make sure that all the change-tracking and relationships information is up to date?

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