>Hi all,
>I appreciate some help here. Stuck at "Step 4: Creating the Orders Web Service". See >codes below
>Public Function GetOrdersByCustomerID(ByVal custID As String) As DataTable
>' Instantiate the Orders business object
>Dim oOrder As New Orders()
>' Get all orders for the specified customer
>Return oOrder.GetOrdersByCustomerID(custID)
>End Function
>At the Return, the whole line is underline in blue. Message is:
>Value of type 'Oakleaf.MM.Main.collections.mmBindingList(Of >Acme.OrderSystem.Business.OrderEntity)' cannot be converted to 'System.Data.DataTable'
>Please advise.
>Regards
The GetOrdersByCustomerID(ByVal custID As String) function returns a mmBindingList(Of OrdersEntity) not a DataTable. This was defined in Step 6.3 of the Jump Start: Creating Business object - VB.NET.
Good Luck
Greg Lee
GCL Software