Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working through the Quick Starts since upgrade
Message
 
À
26/04/2007 15:53:01
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01220247
Message ID:
01220322
Vues:
15
Mick,

>Cannot implicitly convert type 'OakLeaf.MM.Main.Collections.mmBindingList' to 'System.Data.DataTable'
>
>So how is this done, do you use something else besides a DataTable or do you convert the mmBindingList to a DataTable, and how? Thanks in advance gang!

Oops...that was an oversight. The Jump Start for Web Services should be as follows (I just updated the Dev Guide an uploaded a new version). Note that you need to add a reference to the OakLeaf.MM.Main.Collections namespace:
using OakLeaf.MM.Main.Collections;
[WebMethod(Description = "Returns orders for the specified customer")]
public mmBindingList<OrdersEntity> GetOrdersByCustomerID(string custID)
{
	// Instantiate the Orders business object
	Orders oOrder = new Orders();

	// Get all orders for the specified customer
	return oOrder.GetOrdersByCustomerID(custID);
}
And in VB .NET:
Imports OakLeaf.MM.Main.Collections
<WebMethod(Description:="Returns orders for the specified customer")> _
Public Function GetOrdersByCustomerID(ByVal custID As String) As mmBindingList(Of OrdersEntity)
    ' Instantiate the Orders business object
    Dim oOrder As New Orders()

    ' Get all orders for the specified customer
    Return oOrder.GetOrdersByCustomerID(custID)
End Function
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform