-
Aug 25th, 2008, 07:24 AM
#1
Thread Starter
Fanatic Member
[2008] ADO vs .NET Classes - Which Should I Use
Hi,
I have a VB6 application that I need to convert to .NET 2008. It uses a control from ComponentOne that the subscription ran out on. I hate subscriptions (just a rant - when I buy a license I expect to use the control forever) - But I am not paying what they are asking every year.
Anyways...
1) Should I use ADO.NET or use the classes built in .NET.
2) If I don't use ADO.NET, should I use the controls or not. The database itself can be in any location, so I don't want to hook up the db in the IDE of 2008.
-
Aug 25th, 2008, 07:51 AM
#2
Lively Member
Re: [2008] ADO vs .NET Classes - Which Should I Use
epixelman,
ADO.Net are the built-in .Net classes for working with databases.
Kerry Moorman
-
Aug 25th, 2008, 07:55 AM
#3
Thread Starter
Fanatic Member
Re: [2008] ADO vs .NET Classes - Which Should I Use
I thought so. I read on this forum that there was a difference.
-
Aug 25th, 2008, 09:05 AM
#4
Lively Member
Re: [2008] ADO vs .NET Classes - Which Should I Use
-
Aug 25th, 2008, 09:23 AM
#5
Re: [2008] ADO vs .NET Classes - Which Should I Use
What differences? ADO.NET are classes built into .NET......Not sure what you've heard, but it might be misinformation.
-tg
-
Aug 25th, 2008, 10:04 AM
#6
Re: [2008] ADO vs .NET Classes - Which Should I Use
Yes, you should use ADO.NET. It's built into .NET and they're VERY easy and powerful to use.
If you're using Oracle or Microsoft SQL Server, there is a dedicated provider built into .NET for you to use. Everything else can use one of the generic ADO.NET providers such as ODBC or OLEDB.
Many database companies have downloadable (freeware) dedicated .NET providers for their database. MySQL and Pervasive I know for a fact have one and are very good. When installed, you can use that instead of OLEDB or ODBC. Dedicated providers are typically faster due to their optimization, have support for custom features the database system uses, and provide a better "meshing" between .NET and the database such as with parameters.
-
Aug 25th, 2008, 06:21 PM
#7
Re: [2008] ADO vs .NET Classes - Which Should I Use
ADO was the data access technology of choice in VB6. ADO.NET is the data access technology of choice in VB.NET. You can use the functionality of the IDE to do much of the heavy lifting associated with ADO.NET, but it's still ADO.NET. Whether or not you choose to use data-binding, you're still using ADO.NET to interact with the data source. In .NET 3.5 you also have the option of LINQ to SQL if you're using a SQL Server database. Even then though, LINQ to SQL still uses ADO.NET under the hood.
-
Aug 25th, 2008, 07:00 PM
#8
Re: [2008] ADO vs .NET Classes - Which Should I Use
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|