Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jump Start Creating Business Objects - C# Error
Message
De
23/07/2007 17:04:29
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Jump Start Creating Business Objects - C# Error
Divers
Thread ID:
01242992
Message ID:
01242992
Vues:
76
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform