Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way of selecting soft deleted entities. #81

Closed
hikalkan opened this issue Sep 5, 2014 · 6 comments
Closed

Provide a way of selecting soft deleted entities. #81

hikalkan opened this issue Sep 5, 2014 · 6 comments
Labels
Milestone

Comments

@hikalkan
Copy link
Member

hikalkan commented Sep 5, 2014

We may add an extension method to IQueryable, so we can call like that:

//Gets all with deleted entities:
var tasks = taskRepository.GetAll().IncludeDeleted().ToList();

or

//Gets only deleted entities:
var tasks = taskRepository.GetAll().IncludeDeleted().Where(t => t.IsDeleted).ToList();
@g-adolph
Copy link

g-adolph commented Sep 5, 2014

I agree

2014-09-05 7:00 GMT-03:00 Halil İbrahim Kalkan notifications@github.com:

We may add an extension method to IQueryable, so we can call like that:

//Gets all with deleted entities:var tasks = taskRepository.GetAll().IncludeDeleted().ToList();

or

//Gets only deleted entities:var tasks = taskRepository.GetAll().IncludeDeleted().Where(t => t.IsDeleted).ToList();ToList();


Reply to this email directly or view it on GitHub
#81.

@stasoQ
Copy link

stasoQ commented Jan 29, 2015

Good idea

@etshei
Copy link

etshei commented Jan 29, 2015

+1 for this idea (need it in the admin area to recover some deleted entities or also showing then but with an other color - "grey" probably - if i need to show them in relationships)
NB: it's not needed for me to say that your work is a beautiful and blessing ART

@abou-emish
Copy link
Contributor

any one can help me with a code for this extension ? thank you

@abou-emish
Copy link
Contributor

this can be done by disabling the filter, right ?

@hikalkan
Copy link
Member Author

Yes, it can be done by disabling filter now. Filter's name is AbpDataFilters.SoftDelete.

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

No branches or pull requests

5 participants