Last active
January 12, 2017 03:02
-
-
Save JonathanMagnan/f012efc5f6ecd5d33f10104a7622f433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EntityFrameworkManager.DefaultEntityFrameworkPropagationValue = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctx = new EntitiesContext(); | |
ctx.Customers.AddRange(listToAdd); | |
ctx.Customers.RemoveRange(listToRemove); | |
listToModify.ForEach(x => x.DateModified = DateTime.Now); | |
// Easy to use | |
ctx.BulkSaveChanges(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment