摘要: /// /// JSON 的摘要说明。 /// public class JSON { private static readonly string Json_A = "3A3B1A16-F697-4a32-A0B0-2515BB4692F5"; ... 阅读全文
posted @ 2013-06-07 15:02 王洪洪 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 第一、创建一个Windows服务 第二、在自动生成的Program类中写你要写的代码 using System;using System.Collections.Generic;using System.Linq;using System.ServiceProcess;using S... 阅读全文
posted @ 2013-06-07 15:00 王洪洪 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 异步执行sql语句 using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WinInterfaceCallBackVs08{ class Class1 ... 阅读全文
posted @ 2013-06-07 15:00 王洪洪 阅读(494) 评论(0) 推荐(0) 编辑
摘要: sql中写事物和c#中执行事物 第一、sql中写事物 begin try begin transaction insert into shiwu (asd) values ('aasdasda'); commit transaction end try begin catch... 阅读全文
posted @ 2013-06-07 14:59 王洪洪 阅读(154) 评论(0) 推荐(0) 编辑
摘要: private static object sign = new object(); public static DBHelper CreateMapping(string connStr = "") { DBHelper db = new D... 阅读全文
posted @ 2013-06-07 14:58 王洪洪 阅读(5835) 评论(0) 推荐(0) 编辑
摘要: #region 导出excel /// /// 把数据插入到Excel表中 /// /// Sql语句 /// sheet名或者表名 /// public void InsertDataToE... 阅读全文
posted @ 2013-06-07 14:57 王洪洪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: c# 写txt public static void WriteErrorLogDataInteraction(string sLog, string titleLog) { try { stri... 阅读全文
posted @ 2013-06-07 14:49 王洪洪 阅读(177) 评论(0) 推荐(0) 编辑