Export (0) Print
Expand All

DbContext.SaveChanges Method

Entity Framework 5.0

Saves all changes made in this context to the underlying database.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

'Declaration
Public Overridable Function SaveChanges As Integer
'Usage
Dim instance As DbContext 
Dim returnValue As Integer 

returnValue = instance.SaveChanges()

Return Value

Type: System.Int32
The number of objects written to the underlying database.
Show:
© 2014 Microsoft