<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Save Nullable(of integer)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Save Nullable(of integer)</description>
  <pubDate>Wed, 13 May 2026 21:38:04 -700</pubDate>
  <lastBuildDate>Tue, 09 Aug 2011 06:22:31 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2873</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Save Nullable(of integer) : You were right, it was my view.Thanks,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11377#11377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1221" rel="nofollow">Togas</a><br /><strong>Subject:</strong> 2873<br /><strong>Posted:</strong> 09-Aug-2011 at 6:22am<br /><br />You were right, it was my view.<div><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Thanks, the sample code helped.</div>]]>
   </description>
   <pubDate>Tue, 09 Aug 2011 06:22:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11377#11377</guid>
  </item> 
  <item>
   <title>Save Nullable(of integer) : Hi Togas;I suspect that it might...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11370#11370</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2873<br /><strong>Posted:</strong> 08-Aug-2011 at 2:09pm<br /><br /><div>Hi Togas;</div><div><br></div><div>I suspect that it might be a problem with the view. I did a test with this scenario and couldn't repro this issue. In my test, I cleared the textbox, did a save, and the corresponding nullable field shows null in both my view and the database.</div><div><br></div><div>My suggestion to debug this is to put a breakpoint inside your SaveChangesAsync callback and inspect the EntitySaveOperation.Entities argument.</div><div><br></div><div>You can download my test in the link below. I'm using the NorthwindIB database that comes with every DevForce installation. In my test, I'm modifying a Customer.RowVersion field which is a nullable integer in the model.</div><div><br></div><a href="http://www.ideablade.com/friends/Silverlight_AddingDeleting.zip" target="_blank">www.ideablade.com/friends/Silverlight_AddingDeleting.zip</a><div><br></div><div>My test is an extended version of this code sample.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-add-delete-silverlight" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-add-delete-silverlight</a>. I just modified the sample to include the Customer.RowVersion in the view. Everything else stays the same.</div><div><div><br></div><div>Hope this helps.</div></div>]]>
   </description>
   <pubDate>Mon, 08 Aug 2011 14:09:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11370#11370</guid>
  </item> 
  <item>
   <title>Save Nullable(of integer) : In my database I have an interger...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11367#11367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1221" rel="nofollow">Togas</a><br /><strong>Subject:</strong> 2873<br /><strong>Posted:</strong> 08-Aug-2011 at 8:17am<br /><br />In my database I have an interger field that can be null.<div><br></div><div>In my page I'm showing that field in a textbox like this:</div><div><br></div><div><pre style="font-family: c&#111;nsolas"><span style="color: blue">&lt;</span><span style="color: #a31515">TextBox</span><span style="color: red">&nbsp;Text</span><span style="color: blue">="{</span><span style="color: #a31515">Binding</span><span style="color: red">&nbsp;Document</span><span style="color: blue">,</span><span style="color: red">&nbsp;Mode</span><span style="color: blue">=</span><span style="color: blue">TwoWay</span><span style="color: blue">}</span><span style="color: blue">"</span><font ="Apple-style-span" color="#ff0000"> </font><span style="color: blue">/&gt;</span><br></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue"><br></span></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue">If I give it a value (say "1") and save it works fine.  But if I then clear the textbox and save the value stays as "1".  How do I get around this?</span></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue"><br></span></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue">Thanks</span></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue"><br></span></pre><pre style="font-family: c&#111;nsolas"><span style="color: blue"><br></span></pre></div>]]>
   </description>
   <pubDate>Mon, 08 Aug 2011 08:17:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2873&amp;PID=11367#11367</guid>
  </item> 
 </channel>
</rss>