Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jump Start Creating Business Objects - C# Error
Message
From
23/07/2007 17:04:29
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Jump Start Creating Business Objects - C# Error
Miscellaneous
Thread ID:
01242992
Message ID:
01242992
Views:
74
Step 7: Testing the orders business object gives me an error doing a method call on GetOrderByOrderID.

An unhandled exception of type 'System.ArgumentException' occurred in Mere Mortals Framework 2005.dll

Additional information: Keyword not supported: 'catalog'.

Any ideas on what is going on here?
        /// <summary>
        /// Returns an OrdersEntity object populated with he specified order
        /// </summary>
        /// <param name="orderID"></param>
        /// <returns>OrdersEntity object</returns>
        public OrdersEntity GetOrderByOrderID(int orderID)
        {
            return this.GetEntity("OrdersSelectByPK", this.CreateParameter("@OrderID", orderID));
        }
Stored Procedure
CREATE PROCEDURE dbo.OrdersSelectByPK
(
	@OrderID Int
)
AS
	SET NOCOUNT OFF;
	SELECT CustomerID,
		EmployeeID,
		Freight,
		OrderDate,
		OrderID,
		RequiredDate,
		ShipAddress,
		ShipCity,
		ShipCountry,
		ShipName,
		ShippedDate,
		ShipPostalCode,
		ShipRegion,
		ShipVia 
	FROM [Orders] 
	WHERE 
		OrderID = @OrderID

GO
Next
Reply
Map
View

Click here to load this message in the networking platform