Data Access has been discontinued. Please refer to this page for more information.

How to: Update Objects

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

Performing an update operation is an extremely simple operation. You need a reference to an existing object in the database. Once you have it, just update its properties and invoke the well-known SaveChanges method.

Customer customerToUpdate = dbContext.Customers.First();
customerToUpdate.Fax = "[newFax]";
Dim customerToUpdate As Customer = dbContext.Customers.First()
customerToUpdate.Fax = "[newFax]"