ChangeTracker.AcceptAllChanges Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Accepts all changes made to entities in the context. It will be assumed that the tracked entities represent the current state of the database. This method is typically called by SaveChanges() after changes have been successfully saved to the database.
public virtual void AcceptAllChanges ();
abstract member AcceptAllChanges : unit -> unit
override this.AcceptAllChanges : unit -> unit
Public Overridable Sub AcceptAllChanges ()
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework