- Thomas Rolseth
- SnapDevelop
- Tuesday, 23 June 2020 07:16 PM UTC
We are replacing instances of the deprecated SelectToStore() method in our web api. In the code below (line 2) we switched 'SelectToStore' to 'Select'. However, we now get an error on the last line. The error is attached. What is the proper syntax for that last line to add the select result to the datapacker object?
This is with SnapDevelop 2019 R2 build 2323 and an Oracle database on Windows 10.
mr_packer = new DataPacker();
var result_rcv_select_mr_info_pcr61 = _dataContext.SqlExecutor.Select<DynamicModel(sql_rcv_select_mr_info_pcr61, mr_id_inp);
mr_packer.AddModelStore<DynamicModel>("mr_info_pcr61", result_rcv_select_mr_info_pcr61);
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.