title: decimal to double
body: <p>I have something like this.....</p>
  
  <pre><code>foreach (var pupilAvg in pupilsAvgs) {
      Report_TeachersPosition teacher = new Report_TeachersPosition();
      teacher.ORG_ID = pupilAvg.ORG_ID;
      teacher.Yearcode = pupilAvg.YearCode;
      teacher.Teacher_K5 = pupilAvg.PupilsAvg_K5 / ratio.ClassKto5;
      teacher.Teacher_6to8 = pupilAvg.PupilsAvg_6to8 / ratio.Class6to8;
      teacher.Teacher_9to12 = pupilAvg.PupilsAvg_9to12 / ratio.Class9to12;
      teacher.Teacher_EPSFTE = teacher.Teacher_K5 + teacher.Teacher_6to8 
                               + teacher.Teacher_9to12;
      teacher.Teacher_Adjusted_EPSSalary = teacher.Teacher_SAUEPSMatrix
                                           * teacher.Teacher_Ratio;
      teacher.Teacher_ElementarySalary = teacher.Teacher_Adjusted_EPSSalary 
                                         * entities.Report_Attending_Pupils_Avg.ToList()
                                         .Where(x =&gt; x.ORG_ID == pupilAvg.ORG_ID 
                                         &amp;&amp; x.YearCode.Equals("" + yearCode))
                                         .FirstOrDefault().PupilsAvg_K8_Percentage;
      teacher.Teacher_SecondarySalary = teacher.Teacher_Adjusted_EPSSalary 
                                        * entities.Report_Attending_Pupils_Avg.ToList()
                                        .Where(x =&gt; x.ORG_ID == pupilAvg.ORG_ID 
                                        &amp;&amp; x.YearCode.Equals("" + yearCode))
                                        .FirstOrDefault().PupilsAvg_9to12_Percentage;
  }
  </code></pre>
  
  <p>but the <code>class</code> is...</p>
  
  <pre><code>public partial class Report_TeachersPosition {
          public int ORG_ID { get; set; }
          public Nullable&lt;int&gt; Yearcode { get; set; }
          public Nullable&lt;decimal&gt; Teacher_K5 { get; set; }
          public Nullable&lt;decimal&gt; Teacher_6to8 { get; set; }
          public Nullable&lt;decimal&gt; Teacher_K8 { get; set; }
          public Nullable&lt;decimal&gt; Teacher_9to12 { get; set; }
          public Nullable&lt;decimal&gt; Teacher_EPSFTE { get; set; }
          public Nullable&lt;decimal&gt; Teacher_ActualFTE { get; set; }
          public Nullable&lt;decimal&gt; Teacher_Ratio { get; set; }
          public Nullable&lt;decimal&gt; Teacher_TotalSalary { get; set; }
          public Nullable&lt;decimal&gt; Teacher_ElementarySalary { get; set; }
          public Nullable&lt;decimal&gt; Teacher_SecondarySalary { get; set; }
          public Nullable&lt;decimal&gt; Teacher_SAUEPSMatrix { get; set; }
          public Nullable&lt;decimal&gt; Teacher_Adjusted_EPSSalary { get; set; }
  }
  </code></pre>
  
  <p>the problem is... In the <code>class Report_TeachersPosition</code>, I have all <code>decimal</code> values from <code>database</code>. And I want them to be in <code>double</code>. So i change it into <code>double</code> and save it. but when I open it again, Its back to <code>decimal</code>.. I dont know why.. Can somebody help????</p>