Getting Errors in Source Code

Hi Team,

 

I am actually trying to do something like this https://customerfx.com/article/executing-direct-sql-statements-in-a-process-or-configuration-web-service-in-creatio-formerly-bpmonline/  using CustomQuery

 

Please see below : 

 

But I am getting all these errors : 

 

Though I checked System.Data is already there. 

Can anyone please help me with this issue ?

Like 0

Like

5 comments

Hi Akshit,

 

Also add using the Terrasoft.Core.Entities namespace to your code as well as System, Terrasoft.Core.Factories and System.Runtime.Serialization namespaces.

 

Best regards,

Oscar

Oscar Dylan,

 

Thank you most of them are resolved only this persist.

Akshit,

 

You should also add the System.Data.IDataReader namespace to the code.

 

Best regards,

Oscar

Oscar Dylan,

 

Yes, I tried but it says IDataReader is not a namespace it's a type.

Akshit,

Hello Akshit,

reader.GetColumnValue<T> is an extension method defined in Terrasoft.Common. Add that as a using directive and it should fix your issue.

Ryan

Show all comments