惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
D
Docker
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
J
Java Code Geeks
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Simon Willison's Weblog
Simon Willison's Weblog
S
Security Affairs
NISL@THU
NISL@THU
T
Tor Project blog
A
About on SuperTechFans
宝玉的分享
宝玉的分享
腾讯CDC
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
雷峰网
雷峰网
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
Cisco Talos Blog
Cisco Talos Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
Latest news
Latest news
C
Check Point Blog
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
爱范儿
爱范儿
月光博客
月光博客
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs

博客园 - Vincent

reCaptcha 在UpdatePanel 和 ModalPopup中的使用 - Vincent Invalid character in a Base-64 string System.ArgumentOutOfRangeException at System.Web.HttpCachePolicy.UtcSetLastModified (DateTime utcDate) Fabulous Adventures In Coding Microsoft will end OEM and shrink-wrapped sales of Windows XP on June 30, 2008 - Vincent My AutoCompleteExtender Windows Live Writer GRI-MindHarbor软件公司 单表继承 (Single Table Inheritance) 很久没有写blog了. Base64 MD5加密 信用卡是超前消费的一种手段 vs.net2003无法打开*.xsd文件的解决方法 针对MS Project 2003 的开发 Test Your Knowledge of Microsoft Visual Studio .NET page event Microsoft Office InfoPath 2003 Toolkit for Visual Studio .NET 在Code-Behind中操作WebUserControl
写给yzx110的一个实例,仅作参考!
Vincent · 2005-11-29 · via 博客园 - Vincent

 1        public bool DBCommandWrapper(string commandText, OracleParameterCollection Parameters) {
 2            try {
 3                this.dbCommand = new OracleCommand(commandText, (OracleConnection) this.dbConnection);
 4
 5                this.dbConnection.Open();
 6
 7
 8
 9
10                foreach (OracleParameter op in Parameters) {
11                    if (op.OracleType ==OracleType.Char ) {
12                        this.dbCommand.Parameters.Add(op.ParameterName, OracleType.Char).Value = Convert.ToByte(op.Value);
13                    }

14                    else {
15                        if (op.OracleType == OracleType.VarChar) {
16                            op.Value = op.Value==null ? OracleString.Null : op.Value;
17                            this.dbCommand.Parameters.Add(op.ParameterName, op.DbType).Value = op.Value;
18                        }

19                        else {
20                            this.dbCommand.Parameters.Add(op.ParameterName, op.OracleType).Value = op.Value;
21                        }

22                    }

23                }

24
25                this.dbCommand.ExecuteNonQuery();
26
27
28
29                return true;
30            }

31            catch (Exception ex) {
32
33                sb.Append("Error Message: ");
38                sb.Append(ex.Message);
39                sb.Append("\r\n");
40                return false;
41            }

42            finally {
43                this.dbCommand.Parameters.Clear();
44                this.dbConnection.Close();
45            }

46
47        }

知识共享许可协议
本作品采用知识共享署名 2.5 中国大陆许可协议进行许可。必须保留本文的署名以及原文链接.

posted @ 2005-11-29 00:47  Vincent  阅读(687)  评论(0)    收藏  举报

刷新页面返回顶部