{"id":138,"date":"2016-02-18T13:21:41","date_gmt":"2016-02-18T13:21:41","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=138"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"null-values","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/databases\/sqlite\/queries\/null-values","title":{"rendered":"Null values"},"content":{"rendered":"<h4>\n\tIs column returned null?<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tif (Reader1[\"LanguageImage\"].GetType() != typeof(DBNull))\r\n\t\tLanguageImage = (byte[])Reader1[\"LanguageImage\"];\r\n<\/code><\/pre>\n<h4>\n\tSet column to null<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tCommand1.Parameters.AddWithValue(&quot;@LanguageImage&quot;, DBNull.Value);\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is column returned null? if (Reader1[&#8220;LanguageImage&#8221;].GetType() != typeof(DBNull)) LanguageImage = (byte[])Reader1[&#8220;LanguageImage&#8221;]; Set column to null Command1.Parameters.AddWithValue(&quot;@LanguageImage&quot;, DBNull.Value); &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,26],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-queries","category-select"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/138\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}