使用 ASP.net core 对 SQLserver DB 的原始 sql 访问
我支持 ASP 2.0 旧版应用程序,并希望添加一些功能(HTML 编辑器、PDF 生成)。当然,这些新功能没有我可以链接到的旧版本库。我生成了一个较新的 ASP.NET Core 应用程序,它确实具有可以工作的库,并且我可以根据需要将控制权交给这些库。
问题是使用新的 ASP.NET core 应用程序访问数据库。我不想使用 EF 导入整个(大型)数据库,因为我只需要使用新的 ASPNET Core 应用程序更新数百个表中的一两个表。我想使用一个简单的 SQL 客户端来彻底更新所需的表。
我在我的笔记本电脑上运行它,但是当我在(windows server 2019)服务器上运行它时,我收到消息 Microsoft.Data.SqlClient 在此平台上不受支持。
O 云中的专家,让它发挥作用的最佳方法是什么?
谢谢你 - 波普
I am supporting a ASP 2.0 legacy application and want to add some capabilities (HTML editor, PDF generation). Of course these new capabilities do not have a older version of their libraries that I can link to. I have generated a newer ASP.NET core app which does have libraries which will work, and I can hand off control as needed to these.
The problem is getting to the database with the new ASP.NET core app. I do not want to import the whole (large) database with EF, as I only need to update one or two of the hundreds of tables with the new ASPNET core app. I want to use a simple SQLclient that will work to surgically update the needed tables.
I got this working on my laptop, but when I run it on the (windows server 2019) server, I get the message Microsoft.Data.SqlClient is not supported on this platform.
O gurus in the cloud, what is the best way to get this working?
Thank you - Pop
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论