If an input class has a Nullable, and the value is null, the StoredProcedure is passing a sql_variant, instead of float. This throws exceptions, in code like the following:
private class Input
{
double? Bar { get; set; }
}
StoredProcedure myProc = new StoredProcedure("usp_foo");
myProc.WithInput(new Input()).Execute(); // throws SQL Exception
If an input class has a Nullable, and the value is null, the StoredProcedure is passing a sql_variant, instead of float. This throws exceptions, in code like the following: