学习Dot NET

导航

统计

公告

04 2006 档案

用guid类型的字段作主键,用char(36)好还是用uniqueidentifier好?
摘要: 请教各位:用guid类型的字段作主键,用char(36)好还是用uniqueidentifier好?为什么?个人认为代码几乎没有差别, 可能对移植稍有帮助. 请有经验的朋友指教阅读全文

posted @ 2006-04-27 05:19 学习.NET 阅读(1078) | 评论 (7) 编辑

批量插入与更新
摘要: 近来学习什么是三层架构,也就是这个图了,http://msdn.microsoft.com/library/en-us/dnbda/html/f00aa01.gif http://msdn.microsoft.com/library/en-us/dnbda/html/distapp.asp Model层,用贫血的实体, [Serializable] public class CustomerInf...阅读全文

posted @ 2006-04-21 21:29 学习.NET 阅读(3784) | 评论 (9) 编辑

批判工厂方法模式
摘要: 之所以取这个标题,纯粹是为了吸引眼球,:)本人没用过patterns,没有实践经验,所以特来问一个问题。 工厂方法模式中,有两个类体系,一个是产品类体系,如IProduct、ConcreteProductA、ConcreteProductB、ConcreteProductC,具体产品类全部实现IProduct接口。另一个是工厂类体系,如IFactory、ConcreteFactoryA、Concr...阅读全文

posted @ 2006-04-21 21:04 学习.NET 阅读(908) | 评论 (12) 编辑