Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to connect to sqlite database file from windows C#. i have got the connectionstring from the google. but i want connect not using reference DLL file but using the cpp file and need to know how to close the connection also. using that..
Posted

1 solution

1.For using SQLite in C# you could access it directly by using ADO.NET and the .NET provider for SQLite (System.Data.Sqlite), see details bellow:
http://www.dreamincode.net/forums/topic/157830-using-sqlite-with-c%23/[
target="_blank" title="New Window">^
]

2.Or you can use Entity Framework for accessing the database, see details in the next articles:
Using SQLite Embedded Database with Entity Framework and Linq-to-SQL
sqlite-with-entity-framework-code-first-and-migration
 
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