作者: | 来源:互联网 | 2024-10-10 17:30
Ihavesomefriendswhoareold-schoolVB6databasedevelopersandIwastellingthemabout.NETa
I have some friends who are 'old-school' VB6 database developers and I was telling them about .NET and its features, specifically ADO.NET.
我有一些朋友是'老派'VB6数据库开发人员,我告诉他们有关.NET及其功能,特别是ADO.NET。
In our conversation, they brought up the following reasons why they would rather stick with ADO than move to ADO.NET:
在我们的对话中,他们提出了以下原因:为什么他们宁愿坚持ADO而不是转向ADO.NET:
- The Dataset is disconnected (What if power fails?)
数据集已断开连接(如果电源出现故障怎么办?)
- The same amount of code still has to be written
仍然需要编写相同数量的代码
- The new options of
Dataset
, BindingSource
and TableAdapter
seem confusing
Dataset,BindingSource和TableAdapter的新选项似乎令人困惑
- the same code is written programatically access the Database, all that changes is how that command is laid out
以编程方式访问数据库编写相同的代码,所有更改都是该命令的布局方式
I'm looking for answers or reasons why ADO.NET is 'better' than ADO with regards to data access when it comes to Windows Forms applications. What does ADO.NET provide that ADO does not? What does it do better than ADO?
我正在寻找答案或理由为什么ADO.NET在Windows Forms应用程序方面的数据访问方面比ADO“更好”。 ADO.NET提供的ADO不是什么?它比ADO做得更好?
NB: I'd like examples that do not involve LINQ.
注意:我想要不涉及LINQ的示例。
8 个解决方案