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

Command Interception #7371

Closed
satyajit-behera opened this issue Jan 6, 2017 · 6 comments
Closed

Command Interception #7371

satyajit-behera opened this issue Jan 6, 2017 · 6 comments

Comments

@satyajit-behera
Copy link

When can we expect the simple command interception to be implemented in EF Core. In its absence, are there any work around of implementation of IsDeleted type of feature in EFCore?

@divega
Copy link
Contributor

divega commented Jan 14, 2017

@satyajit-behera we haven't decided if we want to have command interception that looks like the one we did in EF6 but here are a few related things:

  • Issue Events and interception (aka lifecycle hooks) #626 covers all lifecycle hooks which could include some means for command or query interception
  • We have been thinking a lot about the concept of filtering applied to a model and DbContext, which should make it easier to implement soft-deletes than interception. We are using Model-level Entity Filters #7413 to track that.
  • Although it requires using and replacing some of our internal service types, there is already a way to achieve command interception. @ajcvickers could you please point to the test that does this?

@divega
Copy link
Contributor

divega commented Jan 14, 2017

Closing as a duplicate of #636 and #7413.

@satyajit-behera
Copy link
Author

@divega Thanks.
@ajcvickers Please let me know how I can achieve this using a different mechanism. Thanks.

@ajcvickers
Copy link
Member

@divega Not sure what you are referring to; I haven't done this in EF Core. I think @anpete might have done something at one point. @satyajit-behera If I was going to start somewhere, I would probably investigate replacing SqlServerConnection, or whatever the RelationalConnection class is for the provider you are targeting.

@divega
Copy link
Contributor

divega commented Jan 17, 2017

@ajcvickers ok, I guess I had it mixed up in my notes. @anpete do you know of a test that does service replacement to achieve something similar to command interception? I had this in my notes from triage but it might have been a misunderstanding.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants