title: .NET Core model is rounding my decimal values
body: <p>I have a .NET Core 2.0 app that is pulling data from an API and trying to save it to a table cog_detail (using the model CogDetail)</p>
  
  <pre><code>foreach (Models.Cog.CogDetail cd in cdList)
  {
     _context.CogDetail.Add(cd);
     _context.SaveChanges();
  }
  </code></pre>
  
  <p>One of the values is called Lmn and shows as 2.60895M when I check the value in cd (I have a breakpoint on _context.CogDetail.Add(cd);)</p>
  
  <p>But once it does the save, it is saving in the database as 3</p>
  
  <p>The SQL Server table has the column as decimal(18, 0), null</p>
  
  <p>My context has this:</p>
  
  <pre><code>modelBuilder.Entity&lt;Models.Cog.CogDetail&gt;(entity =&gt;
  {
    entity.HasKey(e =&gt; new { e.Test_ID, e.TCode }).HasName("PK_cog_detail");
  
    entity.ToTable("cog_detail", "cog");
  
    entity.Property(e =&gt; e.Test_ID)
      .HasColumnName("test_id")
      .HasColumnType("int");
  
    entity.Property(e =&gt; e.TCode)
      .HasColumnName("tcode")
      .HasColumnType("varchar(10)");
  
    entity.Property(e =&gt; e.Lmn)
      .HasColumnName("lmn")
      .HasColumnType("decimal(18, 0)");
  
  });
  </code></pre>
  
  <p>Any ideas on why it is rounding up instead of staying as 2.60895?</p>