摘要: 代码 sql1="INSERTINTOtablename(Id,col1,col2)VALUES(@Id,@col1,@col2)updatetablename2setcol=@col";sql2="INSERTINTOtablename3(Id,col1,col2)VALUES(@Id,@col1,@col2)";//参数设置(略)using(SqlTransactiontran=SqlHelp... 阅读全文
posted @ 2009-12-09 11:22 ForFreeDom 阅读(3989) 评论(1) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//C#中可使用using关键字自动清除对象资源。//#MyObject.csusingSystem;namespaceMyProjects{publicclassMyObject:IDisposab... 阅读全文
posted @ 2009-12-09 11:15 ForFreeDom 阅读(212) 评论(0) 推荐(0) 编辑