GetValueFromRowAsBool

Method GetValueFromRowAsBool Method

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

Overloads

StaticGetValueFromRowAsBool(System.Data.DataRow,System.String)
StaticGetValueFromRowAsBool(System.Data.DataRow,System.Int32)
StaticGetValueFromRowAsBool(System.Data.DataRow,System.Data.DataColumn)
StaticGetValueFromRowAsBool(System.Data.DataRow,System.String,System.Boolean)
StaticGetValueFromRowAsBool(System.Data.DataRow,System.String)

Will get a the data value from the data row as a bool. If a DB Null is found then throw a NullException

Parameters
NameTypeDescription
drSystem.Data.DataRow
sColumnNameSystem.String
Returns

System.Boolean

StaticGetValueFromRowAsBool(System.Data.DataRow,System.Int32)

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnIndexSystem.Int32
Returns

System.Boolean

StaticGetValueFromRowAsBool(System.Data.DataRow,System.Data.DataColumn)

Parameters
NameTypeDescription
drSystem.Data.DataRow
dcSystem.Data.DataColumn
Returns

System.Boolean

StaticGetValueFromRowAsBool(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 it will return the default bool value defined in DefaultReturnValueIfNull

Parameters
NameTypeDescription
drSystem.Data.DataRow
sColumnNameSystem.String
defaultReturnValueIfNullSystem.Boolean
Returns

System.Boolean