Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a Stored Procedure/Get By PK
Message
 
À
20/11/2007 06:46:28
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01270118
Message ID:
01271388
Vues:
18
Nick,

>I have an ASP.NET project and I have generated a business layer using MM.Net. What I am trying to do is call a specific Stored Procedure to return an entity from a business object. I cannot seem to find a way to do this. Do I need to extend the partial class of the business object to do this? Also, I cannot find the GetByPK method that is generated on the business object as well. I am just learning to use MM.Net/infragistics controls and I am finding them very useful. Clearly I am missing something obvious here. Would someone mind pointing me in the right direction please?

Check out the MM .NET Dev Guide topic "Retrieving Business Entity Objects with GetEntity()" for details. It gives examples like the following:
public OrdersEntity GetOrderByOrderID(int orderID)
{
   return this.GetEntity("OrdersSelectByPK", this.CreateParameter("@OrderID", orderID));
}
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
Répondre
Fil
Voir

Click here to load this message in the networking platform