Hello.
I have downloaded and installed linq-to-sqlite from http://sqlite.phxsoftware.com/ But the following test code:
[ Table( Name = "items" ) ]
public class MyItem
{
[ Column( IsPrimaryKey = true ) ]
int MyId;
}
public class MyDb : DataContext
{
public MyDb( IDbConnection c ) : base( c ) {}
public Table< MyItem > myItems;
}
var connection = new SQLiteConnection( "Data Source=my.db;" )
var database = new MyDb( connection );
database.CreateDatabase();
Fails in "CreateDatabase" with exception:
SQLite error
near "DATABASE": syntax error
What i'm doing wrong?