Trying the new BulkInsert in 6.10.0, but it’s causing an error because the SQL is not valid.
The DTO has an AutoIncrement column, which is setting a column in values…
public class MyDTO
{
[AutoIncrement]
[PrimaryKey]
public int Id { get; set; }
public DateTime Date { get; set; }
}
Db.BulkInsert<MyDTO>(dtos, new BulkInsertConfig { Mode = BulkInsertMode.Sql });
This is the SQL it generates
“INSERT INTO MyDTO
(Date
) VALUES\r\n(,‘2023-09-12 17:31:52’);”
Invalid comma after the parenthesis "…(,'2023…