title: Operand type clash: NULL is incompatible with A table type
body: <p>When i am trying to send parameters to sql-server i am sending a list which will get binded with a table type parameter in SQL server. i am adding parameter to the parameter list like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>SqlParameter para6 = new SqlParameter();
  para6.ParameterName = "ObjectAttrList";
  para6.SqlDbType = System.Data.SqlDbType.Structured;
  para6.Value = null;
  para6.IsNullable = true;
  if (attrList != null &amp;&amp; attrList.Count &gt; 0)
  {
      para6.Value = attrList;
  }
  para6.Direction = ParameterDirection.Input;
  sqlParameters[5] = para6;
  </code></pre>
  
  <p>and this is the  sql procedure with which ill be inserting data:</p>
  
  <pre><code>@ObjectAttrList  [ObjectStore].[ObjectStoreAttributes] READONLY )
  </code></pre>
  
  <p>while doing this i am getting an error like:"Operand type clash: NULL is incompatible with ObjectStoreAttributes"
  i searched a lot about this and tried solutions accordingly. but none of them seems to work. any help is appreciated</p>