在Winforms中报告日志 [英] report log in winforms

查看:117
本文介绍了在Winforms中报告日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的讲师说,我们应该考虑一下在Windows窗体上使用的报告日志.
基本上,我要问的是用户是否使用连接到数据库的Winform,并且他们从数据库中添加,修改或删除数据库,所以我只能使用一个按钮来显示活动"(如果在文本框或.txt中)文件.就像报告日志一样

我还没有代码,如果您可以帮助我朝正确的方向发展,或者文章或代码会有所帮助

My lecturer said we should think about a report log that you use on a windows form.
basically what i am asking is if a user uses my winform that is connected to a database and they add, modify or delete from a database i could just have a button to show the "activity" if any in a text box or a .txt file. like a report log

i don''t have code yet, if u can help me to get in right direction or an article or code will be helpful

推荐答案

在我看来,您需要创建一个用户活动"数据库.这样做很简单,因为它至少应该只有一个表,如下所示:
In my opinion, you need to create an ''user-activity'' database. It''s simple to do, because it should at least have only one table, like this:
ActivityID - INT (IDENTITY)<br />
UserID - INT  -> user name, id or any other unique value<br />
DatabaseID -> database name, id or any other unique value<br />
TableId -> table name, id or any other unique value<br />
UserActivity - VARCHAR(255)  -> description of user activity<br />
ActivityTime - DateTime<br />


表或字段的数量取决于您的条件.

保存数据之前,请保存用户的活动".


The number of tables or fields depends on your criteria.

Before you save data, save user ''activity''.


这篇关于在Winforms中报告日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆