Last active
January 12, 2017 03:02
-
-
Save JonathanMagnan/e7ee0e1f01605806f312cbaa082922ae 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
// DELETE all customers that are inactive for more than two years | |
context.Customers | |
.Where(x => x.LastLogin < DateTime.Now.AddYears(-2)) | |
.DeleteFromQuery(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment