![]() The classes we are going to use to access data are being automatically generated for you based on the EDMX file. Now that we have a model it’s time to use it to access some data. Select the EF 5.x DbContext Generator for C#, enter BloggingModel as the name and click Add Select Online Templates from the left menu and search for DbContext Right-click on an empty spot of your model in the EF Designer and select Add Code Generation Item… Next, we need to swap our model to generate code that makes use of the DbContext API, which was introduced in later versions of Entity Framework.
0 Comments
Leave a Reply. |