Last active
January 12, 2017 03:02
-
-
Save JonathanMagnan/c1813685d2d53b68fae7b4be51d472b2 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
// using Z.EntityFramework.Plus; // Don't forget to include this. | |
var ctx = new EntitiesContext(); | |
ctx.Filter<Post>(q => q.Where(x => !x.IsSoftDeleted)); | |
// SELECT * FROM Post WHERE IsSoftDeleted = false | |
var list = ctx.Posts.ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment