如何在没有实体框架的情况下在ASP.NET核心中的数据库中插入数据? [英] How do I insert data in database in ASP.NET core without entity framework?

查看:111
本文介绍了如何在没有实体框架的情况下在ASP.NET核心中的数据库中插入数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Asp.net Core中使用Ado.net但它不起作用。



我尝试过:



如何在没有实体框架的情况下在Asp.net Core中的数据库中插入数据?

我使用Ado.net但它不起作用。我没有添加引用而不是system.data.configuration所以我如何在数据库中插入数据。

I am Use Ado.net in Asp.net Core but it not working.

What I have tried:

How do i Insert data in database in Asp.net Core without Entity Framework?
I am Use Ado.net but it not working. There is i am not add reference not system.data.configuration so how i do insert data in database.

推荐答案

我用google搜索asp.net core ado.net并找到了很多结果,这里是第一个但是自己搜索更多



asp.net- .NET Core中的ADO.NET可能吗? - 堆栈溢出 [ ^ ]



请在提问之前进行基本研究,例如使用谷歌。
I googled "asp.net core ado.net" and found lots of results, here is the first one but do the search yourself for more

asp.net - Is ADO.NET in .NET Core possible? - Stack Overflow[^]

Please do basic research like using google before asking a question.


这篇关于如何在没有实体框架的情况下在ASP.NET核心中的数据库中插入数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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