代码改变世界

随笔档案-2011年09月

vs2010在win7的IIS 7.5上调试

2011-09-23 16:06 by starlet, 727 阅读, 收藏, 编辑
摘要: 在vs2010 和IIS7.5上进行常规的调试的时候发现无法进入到调试状态,断点无法进入。修改相应站点的应用程序池的高级设置,这样附加的iis进程才能被vs2010调试。 阅读全文

sql如何判断字符串从左边第一个数字为5

2011-09-22 22:24 by starlet, 1151 阅读, 收藏, 编辑
摘要: createfunction[dbo].[myfn_GetBeginFive](@strvarchar(50))returnsbitasbegindeclare@rbit,@indexint,@tempvarchar(2),@countintset@r=0set@index=1set@count=len(@str)set@temp=''while@index<@countbeginset@temp=substring(@str,@index,1)if'1234567890'like'%'+@temp+'%'beginif@t 阅读全文

Ambiguous Reference in Generated Code

2011-09-06 20:13 by starlet, 313 阅读, 收藏, 编辑
摘要: I have two models that point to two different databases in seperate namespaces in my web project with entities of the same Type. I also have two seperate DomainServices, one for each model. My generated code in my SL application is receiving an error saying my Entity is an ambiguous reference beca.. 阅读全文
点击右上角即可分享
微信分享提示