When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

pluralsight logo

Code-first Entity Framework 2 with Legacy Databases

Most code generators are inflexible, but with the Entity-Framework Reverse POCO Generator, you can create code exactly how you want it. You'll learn how to reverse-engineer a legacy or current SQL Server database into Code-first Entity-Framework code.

     
  • 5
  •  |
  • Reviews ( 112 )
Free

This Course Includes

  • iconpluralsight
  • icon5 (112 reviews )
  • icon2 hour 52 minutes
  • iconenglish
  • iconOnline - Self Paced
  • iconcore courses
  • iconpluralsight

About Code-first Entity Framework 2 with Legacy Databases

With EDMX support fading away, it's even more important to use code-first as EF7 approaches. Most generators are rigid and don't provide you any flexibility in how the code is to be generated. But in this course, Code-first Entity Framework with Legacy Databases, we will be using the "Entity-Framework Reverse POCO Generator", a free visual studio tool, available at www.ReversePoco.com. This generator has been designed from the ground up to be customizable, and produce the code you would have done if you hand-coded it yourself. This course will show you what each of the various settings has on the generated code, and you'll also learn how to create separate data and model projects, as well as create repositories, unit tests and integration tests. By the end of this course, you will be able to flexibly generate code that meets your needs.

What You Will Learn?

  • Introduction and Project Overview : 15mins.
  • Generating Code First Types from an Existing Database : 49mins.
  • Isolating the Relevant Database Objects : 15mins.
  • Organizing the Generated Code : 21mins.
  • Customizing the Generated Code : 31mins.
  • Working with Entity Framework Migrations : 19mins.
  • Testing the Code-first Access Layer : 19mins.