开发者

VWD Express 2010 CommandType

开发者 https://www.devze.com 2023-04-07 19:59 出处:网络
I just converted a website from Foxpro to asp.Net with VB.I\'m now trying to convert to C# and maybe try a few new techniques.I\'ve not used parameters with datareader before - I found some code that

I just converted a website from Foxpro to asp.Net with VB. I'm now trying to convert to C# and maybe try a few new techniques. I've not used parameters with datareader before - I found some code that looks similar to what I want to do; however, Intellisense doesn't recognize the command.

cmd.CommandType=CommandType.StoredProcedure;

where cmd is of type SqlCommand. I have a line up top ...

using System.Data.SqlClient;

Is there something else I need to include?

Intellisense is not recognize "Comm开发者_StackOverflow中文版andType"


Add the following namespace.

using System.Data;
0

精彩评论

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