--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/490d0bc6-37b8-4797-a5dd-8aff7b9d4c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
![]() | Oren Eini CEO / Hibernating Rhinos LTD
|
Yes, here is how you can handle this:private void Store_OnBeforeQuery(object sender, BeforeQueryEventArgs e){switch (e.QueryCustomization){case IDocumentQuery<User> userQuery:userQuery.AndAlso().WhereEquals("IsDeleted", false);break;case IAsyncDocumentQuery<User> userAsyncQuery:userAsyncQuery.AndAlso().WhereEquals("IsDeleted", false);break;default:break;}}
On Tue, May 21, 2019 at 5:50 AM Cassio Tavares <cas...@gmail.com> wrote:
Hi,--My entities have a IsDeleted property. I'm trying to use OnBeforeQuery to filter all entities in a query where the IsDeleted == false. My plan is to inherit from a specific interface to identify these entities.I searched the docs but couldn't find anything useful.Is it possible using OnBeforeQuery or any other way?Thanks
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/490d0bc6-37b8-4797-a5dd-8aff7b9d4c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/cb60ceb4-b306-43e0-95b6-55a232509f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/cb60ceb4-b306-43e0-95b6-55a232509f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/ac4fdd42-4cf1-4068-b487-02d1bbbd2acd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/ac4fdd42-4cf1-4068-b487-02d1bbbd2acd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/dfa58fae-84b0-45d7-9916-999cf1d9b82d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "RavenDB - an awesome database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/f53f29d6-c5f5-42de-97ef-b29e01f50192n%40googlegroups.com.


