>#1
The return value should be of type BindingList like this:
public List<OrdersEntity>GetOrdersByCustomerID(string customerID)
{
return this.GetEntityList<OrdersEntity>("SELECT * FROM Orders WHERE CustomerID = @CustomerID",
this.CreateParameter("@CustomerID", customerID));
}
>>what is the correct way to fix the above error and have the method appear in the test bench??
Unfortunately, the Object Test Bench is limited in the return values it can accept from methods. To test this method you need to add a method to the AAppTest test harness class to call the method and examine its return value.
>#2
>also in Jump Start: Creating Business Objects - C# Step 8: Enhancing the OrderDetail Business Object
>
>I do not see a DSL Model File prompt in the Specify the Code Generation Settings page in my version of the MM .NET Business Layer Generator...tool.. could one explain this feature?..
The DSL Model File prompt is for future use (it's hidden in MM .NET 2.3). In the future it will be used to save settings in a Microsoft Domain-Specific-Language file.
>#3
>also in Jump Start: Creating Business Objects - C# Step 8: Enhancing the OrderDetail Business Object under Creating OrderDetail Data Retrieval Methods
The same is true for this method. It should be BindingList<> and again, you won't be able to run it from the Object Test Bench.
It looks like something went awry with my Help file...I'm scouring my hard drive now to see what's up. It looks like some of the topics lost the updates we last made to them. As soon as I figure this out I'll post a new Help file and let everyone know its available.
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