I’m struggling with learning Entity Framework. I’ve tried a video series and reading a book and I can’t put the pieces together. Help?

So I watched the MSDN "Deploying Entity Framework" in which they introduce the DbContext which is sort of like the wrapper for the entire code first process. What I am confused about is how do the configuration classes, "EntityTypeConfiguration" relate to DbContext class? Both seem to have a way of mapping out characteristics of the database (max string length, optional, etc), so what's the difference? Are these just two approaches that I can choose from or are both part of a bigger picture and required in a sequence of creating and managing a database?

by thisredaccount via /r/csharp

Leave a Reply