上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: TestClass()该属性表示一个测试装置。TestMethod()该属性表示一个测试用例。AssemblyInitialize()在执行为执行选择的第一个 TestClass() 中的第一个 TestMethod() 之前,执行带有该属性的方法。ClassInitialize()带有该属性的方法在执行第一个测试之前调用。TestInitialize()带有该属性的方法在执行每个 TestMet... 阅读全文
posted @ 2010-05-18 10:04 Blue Sky ...... 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 最近在做项目时,频繁的使用增删改,把大量时间花费在写Sql语句和参数上,就想能不能写一个通用的方法省略掉写sql 和参数。想了一段时间,想到.net里面有Attitude类,可以自定义属性,这样就可以根据自定义属性获取sql字段和参数名,然后构造出sql语句和sqlParamertes ,要想根据不同表的增删改,可以用泛型实现。首先定义一个继承自Attribute的自定义类:Entry包括 数据库... 阅读全文
posted @ 2010-05-11 17:05 Blue Sky ...... 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSy... 阅读全文
posted @ 2010-05-11 12:42 Blue Sky ...... 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--缓存设计:SqlCacheDependency类在所有受支持的SQLServer版本(7.0,2000,2005)上监视特定的SQLServer数据库表,以便在该表发生更改时,自动从Cache中删除与... 阅读全文
posted @ 2010-05-06 10:00 Blue Sky ...... 阅读(229) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Web; using System.Web.Script.Serialization; using System.Data; namespace Sheng.Common { /// <summary> /// JSON帮助类 /// </summary>... 阅读全文
posted @ 2010-05-02 16:32 Blue Sky ...... 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.imag... 阅读全文
posted @ 2010-04-17 16:32 Blue Sky ...... 阅读(418) 评论(0) 推荐(0) 编辑
摘要: <!--设为主键--> alter table DataTest add primary key (Id);--删除主键DECLARE @Constraint_Name varchar (200)select @Constraint_Name = Name from dbo.sysobjects where Xtype = 'PK' and Parent_Obj = (select ... 阅读全文
posted @ 2010-04-14 22:02 Blue Sky ...... 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--在ASP.NET2.0中提供了一个新的类SqlBulkCopy类,它在性能上的优势更超过了上面的方法,它可以通过让DataSet或是DataReader中大量的数据通过数据流直接进行装载,然后可以将这... 阅读全文
posted @ 2010-04-14 20:40 Blue Sky ...... 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 表一 App表二 Screenshot下面语句的意思: 根据表Screenshot里面的外键AppId=App.Id 把 ScreenshotUrl值赋给App 表的Urlupdate App set Url=(select Screenshot.ScreenshotUrl from Screenshot where AppId=App.Id and Screenshot.No=0) 阅读全文
posted @ 2010-04-13 19:25 Blue Sky ...... 阅读(410) 评论(1) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//顺序栈类SeqStack<T>的实现说明如下所示。publicclassSeqStack<T>:IStack<T>{privateintmaxsize;//顺序... 阅读全文
posted @ 2010-04-07 15:35 Blue Sky ...... 阅读(223) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页