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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top