摘要:
代码 sql1="INSERTINTOtablename(Id,col1,col2)VALUES(@Id,@col1,@col2)updatetablename2setcol=@col";sql2="INSERTINTOtablename3(Id,col1,col2)VALUES(@Id,@col1,@col2)";//参数设置(略)using(SqlTransactiontran=SqlHelp... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//C#中可使用using关键字自动清除对象资源。//#MyObject.csusingSystem;namespaceMyProjects{publicclassMyObject:IDisposab... 阅读全文