摘要: /// <summary> 獲取連接字符串 DbConnection /// </summary> /// <param name="ls_DBSectionName"></param> /// <param name="ls_sXMLFile"></param> /// <returns></re 阅读全文
posted @ 2020-05-08 18:37 Yookee 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 封装事務,方便調用。 1 public class TransactionHelper 2 { 3 public static OracleTransaction ora_Transaction = null; 4 public static OracleCommand ora_Command { 阅读全文
posted @ 2020-05-08 16:20 Yookee 阅读(312) 评论(0) 推荐(0) 编辑
摘要: public static T Excute<T>(string sql, Func<SqlCommand, T> func) { using (SqlConnection conn = new SqlConnection("")) { SqlTransaction trans = conn.Beg 阅读全文
posted @ 2020-05-01 17:25 Yookee 阅读(184) 评论(0) 推荐(0) 编辑