O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

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

Chapter 10. Entity Framework Recipes

In this chapter we will cover:

  • Joining two entities using LINQ
  • Uploading files using Entity Framework and stored procedures
  • Managing connections manually for long-running tasks
  • Using functions that return tables as return values

Introduction

Entity Framework is the technological successor to ADO.NET. It implements the Object Relational Mapping (ORM) pattern. So, you can access the tables through the classes that map to them. In this chapter, we will focus on the recipes that deal with using LINQ to join multiple entities, will call stored procedures using Entity Framework, and so on. We will start with using LINQ to join two entities that do not have navigation (foreign key) defined. The Uploading files using Entity ...

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