0

I'm working on creating a Model called Employee_Wage and it has a field named HourlyWage. I would like to set this to decimal(4, 2) in the database, but I'm unsure how to do this and I haven't found any documentation when searching on how to do this.

When the table is created by default the data type of HourlyWage is decimal(18, 2). I do not want this behavior.

Similar post that doesn't answer what I am trying to do: How to limit a decimal number?

DForck42
  • 19,789
  • 13
  • 59
  • 84
  • 1
    I assume you mean via code first? - if so,refer [this answer](http://stackoverflow.com/questions/3504660/decimal-precision-and-scale-in-ef-code-first) –  Nov 03 '16 at 21:36
  • @StephenMuecke that is exactly what I needed, thank you! – DForck42 Nov 04 '16 at 14:23

0 Answers0