Building the data client

Now that we have our model in place, it’s time to return to the console project that we created and build the data client. At a minimum, here’s what your data client needs to do:

Image

By default, the Entity Framework will create the database using SQLExpress. We’ll look at ways to control that at the end of the chapter. One way is to include a connectionString to the App.config:

Image

Image

You don’t need to do this if you’re using SQLExpress ...

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.