O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

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

Modifying, Saving, and Deleting Data

As you’ve seen, querying data with LINQ to Entities is not terribly difficult. Modifying the data is a different story though. The following sections discuss all data-changing operations.

With LINQ to SQL, the data context with the appended Table(Of ) collections takes care of tracking the changes. With LINQ to Entities, the entity objects themselves fulfill the tracking tasks. They can do this because they are not just POCOs (Plain Old CLR Objects—simple business objects derived from Object), but they are derived from the EntityObject class (if you are working with the default project templates.)

More Information

You can also work with POCOs within the ADO.NET entity framework model, but explaining that is beyond ...

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