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

Interceptors registering #22043

Closed
MursalovAltun opened this issue Aug 13, 2020 · 1 comment
Closed

Interceptors registering #22043

MursalovAltun opened this issue Aug 13, 2020 · 1 comment

Comments

@MursalovAltun
Copy link

Setting CreatedAt, ModifiedAt, CreatedBy not using the SaveChanges() method override.
I would like to implement this the way that doesn't break Open-Closed SOLID principle.

To implement these events #15910 also as interceptors.
Allow registering interceptor for specific DbContext using DI separated from the AddDbContext(DbContextOptionsBuilder).

@ajcvickers
Copy link
Member

Duplicate of #21578

@ajcvickers ajcvickers marked this as a duplicate of #21578 Aug 13, 2020
@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

2 participants