I am using an existing DB (I cannot change it). My class maps to a column of type numeric(18,0)
. If I try to map this to anything else, it breaks and tells me to map to Decimal. I've also googled and confirmed this is the right type (and tried using Int64, etc, and been told to use Decimal). When I use Decimal, I get this error:
Common Language Runtime detected an invalid program.
So, it appears that I can't map to this column. I am mapping to a view, could I perhaps return this value as a string from my view? Do I need to? Is the value just too big and there's no way to map it?