找不到类型或命名空间名称“SqlDataAdapter” [英] The type or namespace name 'SqlDataAdapter' could not be found
本文介绍了找不到类型或命名空间名称“SqlDataAdapter”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨每一个
,版本为4.5.2和 Visual Studio 2017。 此问题似乎与兼容性有关?
and the version is 4.5.2 and visual studio 2017. this issue seems related to the compatibility?
我也发现此问题来自 github 。
also i found this issue from github.
请帮帮我。
谢谢。
推荐答案
您应该在.NET Standard项目中使用SqlDataReader。 SqlDataAdapter是
不可用。
https://www.nuget.org/packages/System.Data.SqlClient/
根据我的理解,.NET标准项目应该能够在资源上运行有限的设备,您不希望使用DataTable / DataSet将所有数据保存在内存中。
From my understanding, .NET standard projects should be able to run on resource limited devices, where you won't want to hold all data in memory with DataTable/DataSet.
这篇关于找不到类型或命名空间名称“SqlDataAdapter”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文