If I have a class:
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
}
And I try to insert this into a corresponding MySQL table using Dapper/DapperExtensions:
var person = new Person { Id = 10, Name = "Bobby" };
connection.Insert(person);
Assuming the Id column in MySQL is set to AUTO_INCREMENT and that the table is empty. Then somewhere along the way the Id value of 10 is changed into 1.
Is it possible, using Dapper/DapperExtensions, to insert the correct Id of 10?