更新数据库中的行 [英] update row in database
本文介绍了更新数据库中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更新数据库中的一行,但我需要保存ID。但是在Win Forms中我不能在工具箱中隐藏一个隐藏字段,我应该使用什么呢?
I am trying to update a row in a datbase but i need to save the ID somewere. But in Win Forms i can't fint a hiddenfield in the toolbox , what should i use instead?
推荐答案
为什么你需要一个隐藏字段,一个私有成员变量会做那个工作。这是Win Form,你可以自由使用持久的内存,并且可以在实例生命周期中使用。
Why you need a hidden field, a private member variable would do that job. This is Win Form, you have the freedom of using memory which is persistent and can be used on instance lifetime.
这篇关于更新数据库中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文