How can i use DBLinq >> DBMetal tool with sqlite?

4.4k Views Asked by At

Please provide samples of command line tool dbmetal to generate code file from a sqlite database.

1

There are 1 best solutions below

2
On

Surfing the internet I found the following command:

DBMetal.exe /namespace:Namespace /provider:SQLite "/conn:Data Source=database.db" /code:CodeFile.cs

Only, the DBMetal version that I downloaded gave an error (Unable to resolve databaseConnectionType: System.Data.SQLite.SQLiteConnection)

I fixed it by downloading the code from the trunk (http://dblinq2007.googlecode.com/svn/trunk), compiling it, and using the generated DBMetal.exe with the above command.