摘要: 想使用using(...), 如:using (Getter process = new Getter()){ //...}就必须给类实现接口IDisposablepublic sealed class Getter: IDisposable { #region ... 阅读全文
posted @ 2014-05-21 15:47 xachary 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 首先在SQLServer定义一个自定义表类型:USE [ABC]GOCREATE TYPE [ABC].[MyCustomType] AS TABLE( [EmployeeId] [char](6) NOT NULL, [LastName] [varchar](30) NULL, ... 阅读全文
posted @ 2014-05-21 09:42 xachary 阅读(5525) 评论(0) 推荐(1) 编辑
摘要: static void Main(string[] args) { //定义与目标表结构相同的DataTable DataTable dataTable = new DataTable(); dataTable.Colu... 阅读全文
posted @ 2014-05-21 09:31 xachary 阅读(208) 评论(0) 推荐(0) 编辑