Comments (14)
What is the purpose of AutoHistory? If to keep a track of all DB transactions -except reading- then ADD
could be implemented.
But the newly inserted data is already in its own table , therefore there's no need to keep a duplicate data of it. Data auditing should include past actions, because the current data is already in the correct place: its own table, own row.
Besides, AutoHistory table will be a sum of all the database, including past versions of data. It's like an Excel worksheet with no removal support so that the update and delete actions are all in the same table. It's unusable.
By supporting add, which is already meaningless, the application should do two round trips for the same action: A data inserted in a table.
That's why I believe ADD
should not be supported and the issue should be closed.
from autohistory.
@lotosbin or anyone, have anytime to close this issue?
from autohistory.
I can do it even if the primary key is a composite one.
from autohistory.
@alexmtnezf Thanks!, PR welcome!
from autohistory.
@alexmtnezf Are your PR ready?
from autohistory.
from autohistory.
yeah, PR = pull request
from autohistory.
ensure entity inserted before history.
and update history's rowId after entity inserted.
from autohistory.
@lotosbin Yes, this can solve the problem, but this cause a new route trip to database. So maybe not to support the ADD
history, only record the modify history.
from autohistory.
Hi there,
Finally, do you plan to support the ADD history ?
Thanks,
from autohistory.
I have not good idea how to impl it in one db roundtrip right now.
from autohistory.
What if we use a package or code from other project hosted in GitHub, if its license is MIT we can use their code right?.
from autohistory.
Yep
from autohistory.
@feldrim AutoHistory not want to keep a track of all DB changing. The usage is only for recording some important changes.
That's why I believe
ADD
should not be supported and the issue should be closed.
I agree now.
from autohistory.
Related Issues (20)
- dotnet core 3.1 HOT 2
- did not work win .net standard 2.0 HOT 2
- Don't generate specific entity HOT 1
- IdentityDbContext<User, Persona, string>' does not contain a definition for 'EnsureAutoHistory' HOT 1
- EnsureAutoHistory stopped working after changing to async/await HOT 1
- Table structure HOT 2
- Change Type of PK
- Does AutoHistory track histories for related entities?
- Does not record on DELETE HOT 2
- Turkish character problem
- Can't record in Context.Add
- Version for net 3
- Recording added entities does not work HOT 1
- Exception using .net 6 HOT 12
- Invalid object name 'AutoHistory' HOT 1
- Concurrency Exception when using pack v6.0.0 in Nuget HOT 1
- Any plans for `net7.0` -- Any compatibility issues with using this alongside `net7.0` and EfCore `7.x.x` within a project?
- create Entity and EntityHistory per Entity (per DbSet<Entity>)
- Created date problem
- How to enable only some entities for auto history? I do not need auto history for all tables.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autohistory.