找不到方法:'System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()'。 [英] Method not found: 'System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()'.

查看:58
本文介绍了找不到方法:'System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()'。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI全部,



我正在尝试加载带有表值的下拉列表。所以我的表单调用

HI All,

I am trying to load my drop down list with the table value.So my form calls

Private Function GetDeliveryDelayDays() As DataTable


       Dim AppHelper As New RemoteObjects.RemoteApplication

       Dim retval As DataTable = Nothing

       Try

           retval = AppHelper.GetDeliveryDelayDays()

       Catch ex As Exception

           MsgBox(ex.Message)

       Finally

           AppHelper = Nothing

       End Try

       Return retval

   End Function



现在我的远程应用程序调用BLL


And now my remote application calls BLL

Public Function GetDeliveryDelayDays() As DataSet

           Dim ds As DataSet = Nothing
           Dim Applications As New DAL.Applications

           Try

               ds = Applications.GetDeliveryDelayDays()


           Catch ex As Exception

               HandleException(ex)

           Finally

               Applications = Nothing

           End Try

           Return ds

       End Function



和现在Bll调用DAL但我得到一个错误找不到方法:''System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()''。在DAL中有一种方法......我不确定扫管笏是不是问题。非常感谢你的帮助。


and now the Bll calls DAL but i get an error "Method not found: ''System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()''." There is a method in DAL ...I am not sure wat is the issue. ANy help is greatly appreciated.

推荐答案

一个是返回数据集,你在数据表中抓取值!!!!!



如果您的方法返回数据集,则应使用数据集调用它。我认为你在调用方法时定义数据表。

尝试定义数据集,以便在两个函数中返回值。
one is returning dataset and you are grabbing values in datatable!!!!!

If your method is returning dataset then you should call it using dataset. I think you are defining datatable while calling method.
try defining dataset for returning values in both function.


这篇关于找不到方法:'System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆