SQL多表插入事务处理
摘要:新建两个需统一事务处理的数据表--学生信息表CREATE TABLE [dbo].[Student]( [Id] [int] NOT NULL, [Name] [varchar](50) NOT NULL, [Age] [int] NOT NULL, [Address] [n...
阅读全文
posted @
2014-09-30 14:03
bukesiyi
阅读(4083)
推荐(0)
Ftp文件操作
摘要:public class FtpTools { static readonly string ftpServerIP = ConfigurationManager.AppSettings["FtpAddress"]; static readonly string f...
阅读全文
posted @
2014-09-30 09:27
bukesiyi
阅读(278)
推荐(0)
读取Zip文件内容
摘要:第一步,上次文件并保存到服务器目录下 /// /// 上传压缩文件 /// protected void UploadZip() { //定义上传文件暂存目录 string uploadDic = @"C:\Test\"; /...
阅读全文
posted @
2014-09-29 17:29
bukesiyi
阅读(1204)
推荐(0)
C#常见数据格式导出
摘要:首先定义一个实体类/// /// 用户实体类/// public class User{ /// /// 编号 /// public int UserId { get; set; } /// /// 姓名 /// public string U...
阅读全文
posted @
2014-09-29 14:36
bukesiyi
阅读(519)
推荐(0)
使用HttpWebRequest方式访问外部接口
摘要:第一步,如果不是http网站,则需认证信托证书 /// /// 认证信托证书 /// /// /// /// /// /// public static boo...
阅读全文
posted @
2014-09-29 10:32
bukesiyi
阅读(374)
推荐(0)