Skip to Content
Professional Visual Basic® 2010 and .NET 4
book

Professional Visual Basic® 2010 and .NET 4

by Bill Sheldon, Billy Hollis, Jonathan Marbutt, Gastón C. Hillar, Rob Windsor, Kent Sharkey
May 2010
Beginner
1319 pages
45h 35m
English
Wrox
Content preview from Professional Visual Basic® 2010 and .NET 4

Chapter 11. Data Access with the Entity Framework

WHAT YOU WILL LEARN IN THIS CHAPTER

  • What is Object-Relational Mapping?

  • What is the Entity Framework

  • How the Entity Framework works with databases

  • Using the Entity Framework to edit data

  • Using the Entity Framework to create new databases

In the past, Microsoft has been known to change the recommended data access strategy relatively frequently. For example, Data Access Objects (DAO) was released in the Visual Basic 3.0 time frame, followed by RDO (Remote Data Objects) as an option in the Visual Basic 4 days, and ADO (Active Database Objects) with Visual Basic 6. Of course, all of these were COM libraries, so it was no surprise when they were superseded by ADO.NET when the .NET Framework shipped. There have been remarkably few changes to ADO.NET since then.

Now, when I see Microsoft recommending a new data access strategy, I start to get nervous. However, in this case there is good news. The Entity Framework (EF) does not replace ADO.NET. You can continue to use ADO.NET without fear of it going away, even as a recommended data access tool. The Entity Framework simply provides a different — richer and more flexible — model for working with data sources.

Beyond simply being a set of classes you use to access your data, Entity Framework enables you to work naturally with the data using the classes you have designed, while saving the data to the underlying database schema. The Entity Framework provides the mapping necessary to convert the data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pro VB 2010 and the .NET 4 Platform

Pro VB 2010 and the .NET 4 Platform

Andrew Troelsen, Vidya Vrat Agarwal
Professional Visual Basic® 2008

Professional Visual Basic® 2008

Billy Hollis, Bill Evjen, Kent Sharkey, Bill Sheldon

Publisher Resources

ISBN: 9780470502242Purchase book