In Visual C# 2005 SP1, I added an object data source to a web page that uses my business class as the select method. The method has one parameter of type Guid. The data source wizard generates code like this
Although the web server has .Net 2.0 SP1 installed (I checked the registry), it still throws an error
Type 'System.Web.UI.WebControls.Parameter' does not have a public property named 'DbType'
The walk around is easy:
本文介绍了一种在Visual C# 2005 SP1环境下使用带有Guid参数的业务类作为数据源选择方法时遇到的问题:在安装了.NET 2.0 SP1的Web服务器上出现Parameter类型没有DbType公共属性的错误,并提供了解决方案。
889

被折叠的 条评论
为什么被折叠?



