title: Parameter value '163753323027.987000000' is out of range
body: <p>I am getting the following Exception while trying to save a value in db via EntityFramework</p>
  
  <pre><code>InnerException: An error occurred while updating the entries. See the inner exception for details.
  InnerException -&gt; InnerException: Parameter value '163753323027.987000000' is out of range.
  </code></pre>
  
  <p>I tried all the solutions provided. But still unable to resolve the issue. I am using EntityFramework, SQL Server. This is not code-first.</p>
  
  <p>In my table I have a column </p>
  
  <pre><code>ActualHydPressureDropPipe decimal(30, 10)
  </code></pre>
  
  <p>The value application is attempting to store in the db is <code>163753323027.987000000</code></p>
  
  <p>I can not try the answer provided here <a href="https://stackoverflow.com/questions/20264558/entityframework-parameter-value-is-out-of-range">here</a> because I donot have EntityTypeConfiguration class.</p>
  
  <p>I tried the answer give <a href="https://stackoverflow.com/questions/3504660/decimal-precision-and-scale-in-ef-code-first">here</a></p>
  
  <pre><code>protected override void OnModelCreating(DbModelBuilder modelBuilder)
  {
    modelBuilder.Entity&lt;Mud_Volumes&gt;().Property(x =&gt; x.ActualHydPressureDropPipe).HasPrecision(30, 10);
    base.OnModelCreating(modelBuilder);
  }
  </code></pre>
  
  <p>This is not working either. I am not sure why the control is not entering into the above method. May be because this is not code first.</p>
  
  <p>I checked in my edmx I have</p>
  
  <pre><code>&lt;Property Type="Decimal" Name="ActualHydPressureDropPipe" Nullable="false" Precision="30" Scale="10" /&gt;
  </code></pre>
  
  <p>Please advice.</p>