I’m trying to use SQLite in my application, and it’s been bumpy. A few things, first off.
- Due to having VS 2008 Express, SQLite design-time support is nonexistent. I’ve done some reading and i’m rather confused about how to use command-based sql connections with standard data controls, ie gridview. If the views ask for data sources, what data source do I choose to use my custom SQL statements with? And how do I choose it, given that I can’t use the design time support?
Thank you,
Cameron
I’ve never used design support in Visual Studio and with SQLite I wonder if it is possible at all so I would suggest you to get into coding 🙂 Here’s a sample illustrating the basic ideas. You start off by creating your database:
Global.asax:
Of course you could skip this step if you already have an SQLite database file. You won’t need to recreate it every time your application starts 🙂
Once you have the database filled with data you could show it in a grid.
default.aspx: