Class :CA.Blocks.DataAccess.DataHelper
Namespace :CA.Blocks.DataAccess
Assembly : CA.Blocks.DataAccess.dll
Will get a the data value from the data row as a bool. If a DB Null is found then it will return the default bool value defined in DefaultReturnValueIfNull
GetValueFromRowAsBool(System.Data.DataRow,System.String) | |
GetValueFromRowAsBool(System.Data.DataRow,System.Int32) | |
GetValueFromRowAsBool(System.Data.DataRow,System.Data.DataColumn) | |
GetValueFromRowAsBool(System.Data.DataRow,System.String,System.Boolean) |
Will get a the data value from the data row as a bool. If a DB Null is found then throw a NullException
Name | Type | Description | |
---|---|---|---|
dr | System.Data.DataRow | ||
sColumnName | System.String |
System.Boolean
Name | Type | Description | |
---|---|---|---|
dr | System.Data.DataRow | ||
columnIndex | System.Int32 |
System.Boolean
Name | Type | Description | |
---|---|---|---|
dr | System.Data.DataRow | ||
dc | System.Data.DataColumn |
System.Boolean
Will get a the data value from the data row as a bool. If a DB Null is found then it will return the default bool value defined in DefaultReturnValueIfNull
Name | Type | Description | |
---|---|---|---|
dr | System.Data.DataRow | ||
sColumnName | System.String | ||
defaultReturnValueIfNull | System.Boolean |
System.Boolean