O'Reilly logo

Code-First Development with Entity Framework by Sergey Barskiy

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

Chapter 5: Advanced Modeling and Querying Techniques

Q1. Since we are not creating a new entity, but a complex type, we need to use ComplexTypeConfiguration of the T base class to configure it.

Q2. The answer is false. We can use the ToTable method in order to configure an entity to be stored in a table with a name that is different from the class name for this entity.

Q3. The answer is false. We can use the Ignore method to exclude some properties from the persistence engine.

Q4. The process of selecting a subset of columns from a table, that is, a subset of properties from an entity, is called projection.

Q5. We do not have to declare a type for a result set; we can always use anonymous types.

Q6. We do not have to use joins to get related data in ...

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