<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, that seems way to do it seems like a workaround for another
problem.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Gunter Becker skrev:
<blockquote cite="mid:1257840297384-3978283.post@n2.nabble.com"
type="cite">
<pre wrap="">Thanks Kenneth.
I've found that SetNull() works for SQL Server 2008 Provider.
But it's very odd to first initialize a "default" value (in my case I use
Int16.MinValue) and then set the whole MgProperty-Object to NULL. Why not
have a constructor that allows NULL values?
Thanks again, Gunter
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">SetNull() is the method to use.
I've found that various providers either break on, or ignore, null values.
Regards, Kenneth Skovhede, GEOGRAF A/S
Gunter Becker skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I'd like to update existing features with NULL values.
Let's say I have a property called 'age' and I want to delete the value
of
this property
so that I have a null value instead of the integer value.
The only contructor I've found needs two parameters. The property name
and
the property value.
The property value can't be null:
MgInt16Property newProperty = new MgInt16Property(propertyName,
Convert.ToInt16(propertyValue));
There is a SetNull-Methode which I can set to 'true' afterwards. But this
doesn't affect anything.
Any idea on how to update a property with a null value???
Thanks Gunter
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>