I have the following code:
using (SqlConnection conn = new SqlConnection(connString))
{
conn.Open();
var datan = conn.Query<SodraCell>("SELECT Name FROM dw_datamarts_Sodra_Nyckeltal.dbo.KeyValues WHERE Company=@company", new { company = "Company1" }).FirstOrDefault();
}
When I run this, I get an exception saying:
Arithmetic operation resulted in an overflow.
I don't know why. Why do I get this when I'm doing a query like this?
Here is my Model SodraCell:
public class SodraCell
{
public string Name { get; set; }
}