title: How to send in "NULL/DbNull" into a table-column with the datatype: nullable int
body: <p>I got a table in sql-server 2012 with a column that is the datatype int but also nullable.</p>
  
  <p>I've a textbox that when left empty should insert <code>NULL</code> into the nullable int cell. But I'm having trouble with what type to send in to be translated as <code>null</code>. What I want is a datatype of int but also null (int?) to send into the database.</p>
  
  <pre><code>var tbl_row = db.table.Where(n =&gt; n.key.Equals(key)).SingleOrDefault();
  
  tbl_row.nullable_int = this.tb.Text == "" ? [null int value] : int.Parse(this.tb.Text);
  </code></pre>