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

Support to abstract entity #80

Open
HHaoWang opened this issue Mar 2, 2023 · 0 comments
Open

Support to abstract entity #80

HHaoWang opened this issue Mar 2, 2023 · 0 comments

Comments

@HHaoWang
Copy link

HHaoWang commented Mar 2, 2023

Hi I am a newer to this. I am using another EF Core trigger extension and I was attracted to this extension. When I want to migrate to this, a subtle but hard problem come to me.
My database has many tables, and all these tables has three common columns including id, createTime and updateTime. Thus I use a BaseEntity abstract class, which involves the three columns, as all tables parent class. I hope to create some triggers to solve all tables' update operations. When a row is updated, the column updateTime is updated by the operation time, whatever entitis the row is.
It's easy to complete it when I use another extension. However that extension is a "runtime" trigger extension and I want to make it be real triggers in the database . Unfortunately, it seems not easy to reach the same function with this extension. I found #50 maybe helpful. But after trying it, I can not do the update operations.
I am using postgresql and EF Core 7. I really want to know how to make this function.

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

No branches or pull requests

1 participant