当应用程序结束时,我需要添加代码C#以在C#中激活Oracle语句 [英] When Application End , I Need To Add Code C# To Fire Oracle Statement In C#
本文介绍了当应用程序结束时,我需要添加代码C#以在C#中激活Oracle语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
macid =UPDATE DBUSERS SET MAC_IP ='+ macid +'where where MAC_IP ='+ macAddresses +';
macid = "UPDATE DBUSERS SET MAC_IP='" + macid + "' where MAC_IP='" + macAddresses + "'";
推荐答案
处理< a href =http://msdn.microsoft.com/en-us/library/system.windows.forms.application.applicationexit(v=vs.110).aspx> Application.ApplicationExit Event [< a href =http://msdn.microsoft.com/en-us/library/system.windows.forms.application.applicationexit(v=vs.110).aspx\"target =_ blanktitle =New Window > ^ ]并在那里做。请务必阅读整篇文章,因为如果您处理此事件,您必须执行一些操作。
Handle the Application.ApplicationExit Event[^] and do it there. Be sure to read the whole article as there are some things you must do if you handle this event.
如果您使用ASP,则可以在Global.asa中处理此问题。如果你使用的是Asp.Net,你将在Global.Asax中拥有相同的功能。
You can handle this in Global.asa if you're using ASP. If you're using Asp.Net you'll have have the same functionality in Global.Asax.
这篇关于当应用程序结束时,我需要添加代码C#以在C#中激活Oracle语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文