上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页

发布网站时自动切换connectionString

摘要: 1,安装 Web Deploy Projects2,在VS里右击Web项目, Add Web Deployment Project, 确定3,设置新添加的项目的属性. 其中的"Compilation"页中 Output Path即为要发布到的目录.4,在项目属性的Deployment页中,选中"Enable Web.config file section replacement",在下面输入"co... 阅读全文
posted @ 2008-06-22 00:34 deerchao 阅读(493) 评论(0) 推荐(0) 编辑

泛型与反射

摘要: TypeToString()ContainsGenericParametersGenericParameterAttributesGenericParameterPositionIsGenericType Dictionary<,> Dictionary`2[TKey,TValue] Y - - Y < Tkey Y None 0 N > Tvalue Y None 1 N... 阅读全文
posted @ 2008-06-16 11:23 deerchao 阅读(889) 评论(0) 推荐(1) 编辑

强悍的电子邮件地址(email address)正则表达式

摘要: 原始来源: RegexLib.com修改后加入了两个新功能:1,匹配类似 "lc <deerchao@xxx.com>" 这样的包含姓名的格式.2,添加了四个命名组: name, email, user, domain. 这样可以方便取出相应的信息.Code highlighting produced by Actipro CodeHighlighter (freeware)http:... 阅读全文
posted @ 2008-06-14 15:24 deerchao 阅读(5025) 评论(1) 推荐(0) 编辑

db4o, 看上去很美

摘要: 由于厌烦了手写Sql,在几个小项目中尝试着使用了Db4O.DAL层写起来是爽了,但是,还是有很多其它东西会绊你的脚。没有主键的概念(因为对象的内存地址,或者引用就能标志一个对象了).因而外界想指向一个具体的对象就比较困难(比如本页的url里的1079505).激活/保存层次的问题.获取一个对象,它的字段引用了其它对象,那么到底激活多少层次合适?保存时也是如此.层次深了伤性能,层次浅了用着不方便(动... 阅读全文
posted @ 2008-06-12 10:55 deerchao 阅读(918) 评论(1) 推荐(0) 编辑

把文本文件数据快速导入Sql Server

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->bulk insert from '' with ( FieldTerminator='', RowTerminator='' )比如,把 C:\aaa.... 阅读全文
posted @ 2008-06-11 17:46 deerchao 阅读(1128) 评论(1) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页