开发者

using Directive to SqlHelper is not working in VS2008

开发者 https://www.devze.com 2023-03-15 22:23 出处:网络
I used visual studio 2005, in that I have created开发者_开发技巧 a class and created namespace for that. And in aspx.cs I am writing in above class using sqlhelper; it works. But I am getting an error

I used visual studio 2005, in that I have created开发者_开发技巧 a class and created namespace for that. And in aspx.cs I am writing in above class using sqlhelper; it works. But I am getting an error in 2008 when I doing same thing. In 2008 already it provides namespace to class that not in 2005


It sounds like you are simply missing a reference to ent-lib (assuming by "sqlhelper" you mean the MS application blocks example). Add that reference, and your using directive should start working. If you have changed your ent-lib version, note that "sqlhelper" is obsolete. I believe this was replaced by Database (and SqlDatabase etc).

(this should not be taken as a recommendation to use ent-lib; quite the opposite - I am not a fan ;p)

0

精彩评论

暂无评论...
验证码 换一张
取 消