开发者

using Directive to SqlHelper is not working in VS2008

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜