Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

EnableFilter by defult #21

Open
AhmadRajabi opened this issue Apr 2, 2015 · 2 comments
Open

EnableFilter by defult #21

AhmadRajabi opened this issue Apr 2, 2015 · 2 comments

Comments

@AhmadRajabi
Copy link

Why not run EnableFilter by default ?

@jbogard
Copy link
Owner

jbogard commented Apr 2, 2015

With what parameter values?

@AhmadRajabi
Copy link
Author

I use this code :

 protected override void OnModelCreating(DbModelBuilder modelBuilder)
 {
     modelBuilder.Entity<Post>().Filter("Post_PostStatusId_Filter", fc => fc.Condition(be => be.PostStatusId != (short)Enums.PostStatus.PermanentlyTrash));
     this.EnableFilter("Post_PostStatusId_Filter");
 }

my reason is last line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants