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

Create a complex type

Image

Time to create a new project and model and create our first type. We’ll start by setting up the project with the basic model.

Image

Create a new console project. I called mine ComplexModels, but you can call yours whatever you like. Remember to add the Entity Framework NuGet package by choosing Tools, Library Package Manager, Manage NuGet Packages for Solution.

Image

Add an ADO.NET Entity Framework Model to the project by choosing Add ...

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