Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another Error in the Quick Starts
Message
 
À
05/02/2007 16:50:43
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01192599
Message ID:
01193097
Vues:
15
Michael,

>In Step 8, I get a Cannot implicitly convert type 'System.ComponentModel.BindingList' to 'System.Collections.Generic.List'

In this method just change the return type of the method to BindingList and the type of the OrderDetailList variable type to BindingList like this:
public BindingList<OrderDetailEntity> GetOrderDetail(int? orderID)
{
    BindingList<OrderDetailEntity> OrderDetailList;

    if (orderID != null)
    {
        OrderDetailList = this.GetEntityList<OrderDetailEntity>("GetOrderDetailByOrderID",
          CommandType.StoredProcedure,
          this.CreateParameter("@OrderID", orderID));
    }
    else
>I checked the Sample code in the MM directory but it looks like the sample there is for the pre VS 2005 version?

The current version of the sample application demonstrates the use of DataTables and DataSets rather than the use of entity objects (both approaches are valid). That said we are updating the samples to only use entity objects.

Best Regards,
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