Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to SQLite database. What I know currently is SQLite is a small and lightweight standalone database file that we can use without the windows/SQL authentication (correct me if I'm wrong). Most of the SQLite tutorial online is only for ASP.NET Core, how about ASP.NET MVC? My ASP.NET MVC project is currently published to IIS, so I need the SQLite Database can be published along, and also no need to set up SQL Server or any related setup in IIS. Anyway, I have no idea how to start. Appreciate if someone can provide me some tutorial link? Or even the most simplest example. Thanks in advance.

What I have tried:

I have done research on .mdf file which I don't know whether it belongs to the SQLite.
Posted
Updated 24-Jun-21 23:25pm

1 solution

There's no difference between using SQLite file and MS Access or MS Excel files.

All you need to do is:
- place SQLite database file in the area (IIS folder) where users can access it,
- download and install an SQLite ODBC driver,
- connect to SQLite database via wizard or add proper connection string manually

See:
c# - How Do I Connect an MVC Razor Pages Project to an MS Access Database - Stack Overflow[^]
c# - ASP.NET MVC application reading data from SQLite database - Stack Overflow[^]
connecting to access database | The ASP.NET Forums[^]
How connect MS Access database to MVC?[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900