88 references to IsDBNull
PresentationFramework (2)
src\Framework\System\Windows\Data\BindingExpression.cs (1)
2189
if (Convert.
IsDBNull
(value))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1594
if (Convert.
IsDBNull
(value))
System.Data (58)
fx\src\data\System\Data\Common\DataRecordInternal.cs (1)
279
return (null == o || Convert.
IsDBNull
(o));
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
765
if ( !row.AllowDBNull && (null == currentValue || Convert.
IsDBNull
(currentValue)) )
fx\src\data\System\Data\Common\DBSchemaRow.cs (17)
61
if (!Convert.
IsDBNull
(value)) {
88
if (!Convert.
IsDBNull
(value)) {
103
if (!Convert.
IsDBNull
(value)) {
119
if (!Convert.
IsDBNull
(value)) {
136
if (!Convert.
IsDBNull
(value)) {
152
if (!Convert.
IsDBNull
(value)) {
168
if (!Convert.
IsDBNull
(value)) {
184
if (!Convert.
IsDBNull
(value)) {
200
if (!Convert.
IsDBNull
(value)) {
216
if (!Convert.
IsDBNull
(value)) {
232
if (!Convert.
IsDBNull
(value)) {
265
if (!Convert.
IsDBNull
(value)) {
297
if (!Convert.
IsDBNull
(value)) {
313
if (!Convert.
IsDBNull
(value)) {
329
if (!Convert.
IsDBNull
(value)) {
345
if (!Convert.
IsDBNull
(value)) {
361
if (!Convert.
IsDBNull
(value)) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (4)
556
return Convert.
IsDBNull
(GetValue(i)); // case 1, cache the value
566
return Convert.
IsDBNull
(cachedObj);
576
return Convert.
IsDBNull
(GetValue(i));
1515
Debug.Assert(this.dataCache == null || !Convert.
IsDBNull
(this.dataCache[i]), "Cannot call GetData without checking for cache first!");
fx\src\data\System\Data\Odbc\OdbcParameter.cs (11)
313
if ((null == value) || Convert.
IsDBNull
(value)) {
429
if ((null == value) || Convert.
IsDBNull
(value)) {
487
if ((null == value) || (value is Decimal) || Convert.
IsDBNull
(value)) { // MDAC 60882
596
if ((null != value) && !Convert.
IsDBNull
(value)) {
608
if ((null != value) && !Convert.
IsDBNull
(value)) {
645
if (!Convert.
IsDBNull
(value) && value is string) {
848
if ((null != Value) && !Convert.
IsDBNull
(Value)) {
856
if ((typemap != _typemap) && (null != Value) && !Convert.
IsDBNull
(Value) && (Value.GetType() != _typemap._type)) {
867
if ((null != value) && !Convert.
IsDBNull
(value)) {
890
if ((null == value) || Convert.
IsDBNull
(value)) {
921
else if(Convert.
IsDBNull
(value)) {
fx\src\data\System\Data\OleDb\ColumnBinding.cs (2)
158
&& (Convert.
IsDBNull
(ValueVariant()))));
403
else if (Convert.
IsDBNull
(value)) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
404
if ((value is OleDbPropertyStatus) || Convert.
IsDBNull
(value)) {
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
341
if ((value is OleDbPropertyStatus) || Convert.
IsDBNull
(value)) {
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
392
if ((null != readerValue) && !Convert.
IsDBNull
(readerValue)) { // MDAC 70441
fx\src\data\System\NewXml\DataPointer.cs (3)
125
if (!doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && (fNulls || ! Convert.
IsDBNull
( row[c, rowVersion] ) ) )
463
if ( ! Convert.
IsDBNull
( value ) )
680
Debug.Assert( ! Convert.
IsDBNull
( row[ this.column, rowVersion ] ) );
fx\src\data\System\NewXml\XmlDataDocument.cs (11)
617
if ( ! Convert.
IsDBNull
( value ) ) {
1238
return ( Convert.
IsDBNull
( value ) );
1273
if ( col.ColumnMapping == MappingType.SimpleContent && Convert.
IsDBNull
( value ) && !rowElement.IsFoliated )
1305
if ( Convert.
IsDBNull
( value ) ) {
1335
if ( Convert.
IsDBNull
( value ) ) {
1347
if ( !fFound && ! Convert.
IsDBNull
( value ) ) {
1367
if ( Convert.
IsDBNull
( value ) ) {
1389
if ( !fFound && ! Convert.
IsDBNull
( value ) ) {
1561
if ( childCol == null || relation == null || Convert.
IsDBNull
(child[childCol]) ) {
1923
if ( Convert.
IsDBNull
( proposedValue ) && ! Convert.
IsDBNull
( currentValue ) ) {
fx\src\data\System\NewXml\XPathNodePointer.cs (5)
300
if ( ! Convert.
IsDBNull
( value ) )
334
if ( ! Convert.
IsDBNull
( value ) )
520
if (!_doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && ! Convert.
IsDBNull
( row[c, rowVersion] ) )
540
if (!_doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && !Convert.
IsDBNull
( row[c, rowVersion] ) )
1491
Debug.Assert( ! Convert.
IsDBNull
( row[ this._column, rowVersion ] ) );
System.Data.Entity (3)
System\Data\Mapping\FunctionImportMapping.cs (2)
599
if (null == columnValue || Convert.
IsDBNull
(columnValue))
667
bool valueIsNull = null == columnValue || Convert.
IsDBNull
(columnValue);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
446
if (Convert.
IsDBNull
(principalValue))
System.Data.Entity.Design (10)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.DbObjectKey.cs (3)
33
if (catalog != null && !Convert.
IsDBNull
(catalog))
42
if (schema != null && !Convert.
IsDBNull
(schema))
51
if (name != null && !Convert.
IsDBNull
(name))
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (7)
154
return Convert.
IsDBNull
(value) ? default(T) : (T)value;
256
get { return Convert.
IsDBNull
(_currentRow[PARAM_NAME_INDEX]); }
266
get { return Convert.
IsDBNull
(_currentRow[PARAM_TYPE_INDEX]); }
276
get { return Convert.
IsDBNull
(_currentRow[PARAM_DIRECTION_INDEX]); }
430
get { return Convert.
IsDBNull
(_currentRow[PARAM_NAME_INDEX]); }
440
get { return Convert.
IsDBNull
(_currentRow[PARAM_TYPE_INDEX]); }
450
get { return Convert.
IsDBNull
(_currentRow[PARAM_DIRECTION_INDEX]); }
System.Web (7)
State\sqlstateclientmanager.cs (5)
510
if (Convert.
IsDBNull
(cmd.Parameters[2].Value)) {
516
Debug.Assert(!Convert.
IsDBNull
(cmd.Parameters[3].Value), "!Convert.IsDBNull(cmd.Parameters[3].Value)");
517
Debug.Assert(!Convert.
IsDBNull
(cmd.Parameters[4].Value), "!Convert.IsDBNull(cmd.Parameters[4].Value)");
549
Debug.Assert(!Convert.
IsDBNull
(cmd.Parameters[1].Value), "!Convert.IsDBNull(cmd.Parameters[1].Value)");
1082
Debug.Assert(!Convert.
IsDBNull
(p), "!Convert.IsDBNull(p)");
UI\DataBinder.cs (1)
367
if (value == null || Convert.
IsDBNull
(value)) {
UI\ObjectConverter.cs (1)
40
if (value == null || Convert.
IsDBNull
(value)) {
System.Windows.Forms (8)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
160
if (!Convert.
IsDBNull
(varParams[i]) && varParams[i] != null) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
890
if (pVarResult[0] == null || Convert.
IsDBNull
(pVarResult[0])) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
450
if (curValue != null && curValue != null && !Convert.
IsDBNull
(curValue)){
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (4)
205
else if (Convert.
IsDBNull
(value)) {
385
if (!Convert.
IsDBNull
(value)) {
439
if (!value && Convert.
IsDBNull
(currentValue))
490
if (Convert.
IsDBNull
(currentValue)) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4298
else if (Convert.
IsDBNull
(var)) {