Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanMagnan/c1813685d2d53b68fae7b4be51d472b2 to your computer and use it in GitHub Desktop.
Save JonathanMagnan/c1813685d2d53b68fae7b4be51d472b2 to your computer and use it in GitHub Desktop.
// 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