Re: [mapguide-users] Hot to set MgProperty to NULL

2009-11-10 Thread Kenneth Skovhede, GEOGRAF A/S
Yes, that seems way to do it seems like a workaround for another problem. Regards, Kenneth Skovhede, GEOGRAF A/S Gunter Becker skrev: 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

Re: [mapguide-users] Hot to set MgProperty to NULL

2009-11-10 Thread Gunter Becker
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

Re: [mapguide-users] Hot to set MgProperty to NULL

2009-11-09 Thread Kenneth Skovhede, GEOGRAF A/S
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: 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

[mapguide-users] Hot to set MgProperty to NULL

2009-11-09 Thread Gunter Becker
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 va