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

7. The Code First workflow

Are you proud of yourself? You should be. We’re a little over halfway through the book and you’ve learned how to create an Entity Data Model from a database, create a database from an Entity Data Model, manipulate the model in the Entity Model Designer, and even control the code the Designer creates at a very low level.

So what’s next, you ask? Why, the answer is obvious: It’s time to do without a model or the Designer at all. Well, sort of. If you choose the Code First Workflow that we’ll explore in this chapter, you won’t use the Designer and you won’t create an EDMX file. Instead, you’ll jump right into writing your code and using the DbContext API (which, as I’m sure you’ll remember, frees you from the requirement ...

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