During an insert, the process errors with an invalid name error. Dapper is trying to pluralize the table name.
The mapper class is in the same namespace as the model, named after the table and the model lacks any other annotations, a simple POCO.
//record is an instance of DMPERQ.cs
var rqId = conn.Insert<DMPERQ>(record);
Error:
Invalid object name 'DMPERQs'
The mapper class:
public class DMPERQMapper: ClassMapper<DMPERQ>
{
public DMPERQMapper(){
Table("DMPERQ");
Map(m => m.RQID).Column("RQID").Key(KeyType.Identity);
AutoMap();
}
}