Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Error in the Quick Starts
Message
 
To
05/02/2007 16:50:43
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01192599
Message ID:
01193097
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform