Entity Framework 4 Save and Cancel

I am currently testing the framework 4 entity for a simple application that I want to create.

I searched high and low for an answer to this question with no luck !!

My question is: how to save and undo changes on a record basis? Using the save changes in context method saves all changes to the database. Is there any way to control this?

Thanks Gary

+3
source share
2 answers

. ( ) , . SaveChanges , , "" .

+7

, .

  • NoTracking. .
  • .
  • "" , , ; .
  • SaveChanges . , . SQL .
  • .
  • 3.

, EF, , , , ; .

0

Source: https://habr.com/ru/post/1772919/


All Articles