What (Numeric(18,0), Null) should be converted to in C#
<p>Here's my method:</p>

<pre><code>public static newCase GetCaseById(string id)
{
        using (var db = myDbContext.Create())
        {
            Guid _id;
            if (Guid.TryParse(id, out _id))
            {
                var _case = db.NewCases.FirstOrDefault(c =&gt; c.id == _id); ??
                return _case;
            }
            else
            {
                return null;
            }
        }
    }
</code></pre>

<p><code>The 'Case_id' property on 'newCases' could not be set to a 'System.Decimal' value. You must set this property to a non-null value of type 'System.Double'.</code></p>

<p>Yet, the <strong>Case_id</strong> column is well defined in the <strong>newCase</strong> class. </p>

<pre><code>public class newCase
{
   public double Case_id { get; set; }

   //more here...
}
</code></pre>

<p>In the table <strong>Case_id</strong> is defined as <code>CaseId(Numeric(18, 0), NULL)</code>.</p>

<p>I've changed case_id from d<strong>ouble</strong> to <strong>double?</strong> without success. What's the problem?</p>

<p>Thanks for helping</p>