07 2008 档案

摘要:use master go Alter database tempdb modify file (name = tempdev, filename = 'D:\tempdb.mdf') go Alter database tempdb modify file (name = templog, filename = 'D:\templog.ldf') go 阅读全文
posted @ 2008-07-25 16:43 Simon.guo 阅读(250) 评论(0) 推荐(0)
摘要:一直以为C#的接口中不能定义事件呢, 因为我们知道接口中不能定义变量. (现在才发现Event并不是定义变量, 而是定义了两个方法, 其IL如下:) Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//interface MyInter... 阅读全文
posted @ 2008-07-10 17:15 Simon.guo 阅读(1584) 评论(0) 推荐(0)
摘要:原则一: 尽可能的使用属性(property),而不是数据成员(field)。 Always use properties intead of accessible data member. 原因: 1.Net对属性的支持远远大于对成员的支持,你可以对属性进行数据绑定,设计时说明等很多数据成员不被支持的内容。 2.数据安全性检测;在对数据检测时,如果发现数据不满足条件,最好以抛出异常的形式来解... 阅读全文
posted @ 2008-07-01 12:07 Simon.guo 阅读(230) 评论(0) 推荐(0)