How can I use the DBLinq >> DBMetal tool with sqlite?

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

+3
source share
1 answer

Surfing the Internet I found the following command:

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

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

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

+4
source

Source: https://habr.com/ru/post/1728012/


All Articles