Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Register Biz Obj within console application
Message
De
22/10/2008 15:28:45
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
22/10/2008 15:15:38
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01356391
Message ID:
01356392
Vues:
18
>Does anyone know the proper way to register and use a Business Object within a Console Application. There are no examples in the documentation and it doesn't seem to be as straight forward as I was hoping. I'm trying to create a console application that uses previously defined Busness objects.
CustomerBizObj oCustomer = new CustomerBizObj();
DataSet dsCustomers = oCustomer.GetMyCustomersDS();
or
int custID = 456;
oCustomer.GetCustomerEntityByPK(456)

Then you could access the columns in the current entity with
string CustName = oCustomer.Entity.CustomerName;
The examples in the DevGuide are based on using either Webforms, WinForms, etc. base classes in MM that are aware of the business objects when you register them. In a console app you don't have that luxury so you just create the objects as needed and use the methods on them.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform