Just a quick code sample:
string sql = "INSERT INTO Users (Name) VALUES (@Name); select last_insert_rowid()"; long id = connection.Query<long>(sql, user).First();
Software development blog
Just a quick code sample:
string sql = "INSERT INTO Users (Name) VALUES (@Name); select last_insert_rowid()"; long id = connection.Query<long>(sql, user).First();