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 ...

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.