I'm using dapper with SQL Server, but using Sqlite for some in memory tests for my unit tests.
I have a class as follows
public class Test
{
public int ID {get;set;}
public string Name
}
If I query using dapper with a SQL Server connection, it works fine.
If I query using dapper with a SQLite connection, I get a type cast error. Basically I need to change the type of ID to be a long, rather than int.
I don't want to change my schema in SQL Server, so I'm wondering if there is a workaround to the scenario. I've tried creating and ID class with implicit casts to long/int, but this also fails, and I'm out of ideas!