This project is read-only.

Added vague precision to the decimal type (for mssql)


It was irritating me that decimal creted a decimal(18,0) field, which just isn't useful. So I added this snippet in its place:
else if (type == typeof(decimal))
            int wholelength = 18 - length;
            int decimallength = length;
            return "decimal(" + wholelength + "," + decimallength +")"; 
It basically says, add the decimal point precision in the length field. It's crude, but it works for me.
Any chance something like this could be added? (It's better than nothing surely?)