I have been evaluating the use of dapper and the simplecrud extension with sqlite. No matter what I try when doing a table insert things fail with an exception
no such function SCOPE_IDENTITY
Table class
public class User
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
}
Simplest piece of code to test
static void Main( string[] args )
{
SQLiteConnection conn = new SQLiteConnection( "Data Source=E:\\Databases\\MyDatabase.db;Version=3" );
conn.Open();
var usr = new User { Name = "Dave", Age = 65 };
var id = conn.Insert(usr);
conn.Close();
}
As indicated earlier when I run the code the data is inserted into the table but the program terminates with the SCOPE_IDENTITY
exception.
Any assistance would be greatly appreciated