Occurs when changes are saved to the data source.
JScript does not support events.
The SavingChanges event is raised at the start of a SaveChanges operation on an ObjectContext. This event is typically used to validate changed objects before new values are written to the database.
This example is based on the Adventure Works Sales Model. This registers a handler for the SavingChanges event that performs entity state validation.
No code example is currently available or this language may not be supported.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Supported in: 3.5 SP1