Cannot Reference to ADO.NET !!!

  • Thread starter Thread starter Hyo-Han Kim
  • Start date Start date
H

Hyo-Han Kim

I got some code from codeProject ..


It using ADO interface..

using System.Data; // State variables
using System.Data.ADO; // Database
using System.Globalization; // Date



But System.Data.ADO can not be recognized..

System.Data.Dll Loaded successfully..

What is wrong with me?.

TIA
 
Hello,

The System.Data.ADO namespace was used in Beta versions of .NET Framework.
You should use System.Data.SQL or System.Data.OleDb instead.
 
using System.Data.SqlClient;

Dmitriy Lapshin said:
Hello,

The System.Data.ADO namespace was used in Beta versions of .NET Framework.
You should use System.Data.SQL or System.Data.OleDb instead.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Hyo-Han Kim said:
I got some code from codeProject ..


It using ADO interface..

using System.Data; // State variables
using System.Data.ADO; // Database
using System.Globalization; // Date



But System.Data.ADO can not be recognized..

System.Data.Dll Loaded successfully..

What is wrong with me?.

TIA
 
Thanks for the correction, Matt! That's what relying too heavily on the
IntelliSense means :-)

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

MattC said:
using System.Data.SqlClient;

Dmitriy Lapshin said:
Hello,

The System.Data.ADO namespace was used in Beta versions of .NET Framework.
You should use System.Data.SQL or System.Data.OleDb instead.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Hyo-Han Kim said:
I got some code from codeProject ..


It using ADO interface..

using System.Data; // State variables
using System.Data.ADO; // Database
using System.Globalization; // Date



But System.Data.ADO can not be recognized..

System.Data.Dll Loaded successfully..

What is wrong with me?.

TIA
 
Back
Top