我们可以在asp.net中使用Sqlite数据库吗? [英] Can we use Sqlite database in asp.net?

查看:148
本文介绍了我们可以在asp.net中使用Sqlite数据库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai ....
我们可以在asp.net中使用Sqlite数据库吗?如果可以,如何安装sqlite?以及如何连接到数据库?

谢谢......

Hai....
Can we use Sqlite database in asp.net? If we can, how to install the sqlite? And how to connect to the database?

Thanks......

推荐答案

IMO,您可以在Asp.Net中使用SQLLite.
我没有在Asp.Net中使用过,但在WPF应用程序及其网站中使用过[a] "target =" _ blank"title =" New Window> ^ ]可以为您提供有关配置等的更多见解.

还要通过这些链接

http://sqlite.phxsoftware.com/ [ ^ ]

http://sqlite.phxsoftware.com/forums/p/1636/7005.aspx [ ^ ]
IMO you can use SQLLite in Asp.Net.
I have not used in Asp.Net but in WPF application and their website[^] can give you more insights on configuration etc.

Also go through these links

http://sqlite.phxsoftware.com/[^]

http://sqlite.phxsoftware.com/forums/p/1636/7005.aspx[^]


是的,我们可以使用

参见下面的代码

yes we can use

see the code below

<connectionstrings>
      <remove name="LocalSqlServer" />
      <add name="ConnectionStringName" connectionstring="data source=actual path to db" providername="System.Data.SQLite" />
</connectionstrings>


Did you add the assembly to your assemblies section of web.config?

<add assembly="System.Data.SQLite,Version=1.0.60.0, Culture=neutral,PublicKeyToken=db937bc2d44ff139"/>


这篇关于我们可以在asp.net中使用Sqlite数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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