想通过Console应用程序在数据库中插入数据 [英] Want to insert data in database through Console application

查看:58
本文介绍了想通过Console应用程序在数据库中插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


嗨专家,我已经抓取了一个网站并通过异步任务获取数据。现在我想在数据库中插入该数据。我在main方法中写了一个插入查询,它插入了静态数据。但我不知道如何从该变量中获取数据,
将其插入数据库中。



谢谢.. 

解决方案

https://www.dotnetperls的.com /的SqlClient

Hi experts, I have crawled a website and fetch there data through async task. Now I want to insert that data in database. I have written a query of insertion in main method it insert the static data. but I don't know how to fetch data from that variable and insert it in the database.

Thanks.. 

解决方案

https://www.dotnetperls.com/sqlclient


这篇关于想通过Console应用程序在数据库中插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆