Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi friends...i am using 3 layer architecture in my web application.how to save data changes details in a single table from the front end?
Posted
Comments
Nathan Minier 6-Jan-16 7:52am    
By injecting a logging mechanism into the Business layer.

I like logging for SQL with JSON. You can collapse most objects with it into a string and recover them later, if needed.
User-11630313 9-Jan-16 3:47am    
im new to this....can you explain clearly....if please provide code also
thank you
Nathan Minier 13-Jan-16 7:05am    
Okay, you need to add a handler for when you make changes to your data, so that you can track the details. You need to inject (add something external into internalized code) a handler for those changes, either by using an event-driven approach or by literally placing it between your I/O (your http hander for web applications) and you data persistence logic (ORM, SQLConnection, file serializer, whatever). This additional object can handle the logging of the details of the transaction.

I'm sorry, I can't provide any code. I don't know your implementation strategy, your data access strategy, or a blessed thing about your application.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900