ExecuteScalarAsString

Method ExecuteScalarAsString Method

Class :CA.Blocks.DataAccess.DataAccessCore

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

This will execute the cmd to a ScalarValue and convert the ScalarValue to string value, There is a overload top control the value of the null passed back.

Protected MethodExecuteScalarAsString(System.Data.IDbCommand,System.String)

This will execute the cmd to a ScalarValue and convert the ScalarValue to string value, There is a overload top control the value of the null passed back.

Parameters
NameTypeDescription
cmdSystem.Data.IDbCommand
nullDefaultSystem.StringOptional
Returns

System.String