Namespace Issue of script task in a process
I am facing an issue while create a script task in a process of Bpm'online.
I want to use "IDataReader" object of System.Data namespace to implement the functionality.
1- : While publishing the process changes the Bpm'online generating exception like :
"The type or namespace name 'IDataReader' could not be found (are you missing a using directive or an assembly reference?)"
2- : "'Query' does not contain a definition for 'ExecuteReader' and no accessible extension method 'ExecuteReader' accepting a first argument of type 'Query' could be found (are you missing a using directive or an assembly reference?)"
Please suggest me to fixed the above Compilation Errors.