Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Register Biz Obj within console application
Message
From
22/10/2008 15:28:45
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
22/10/2008 15:15:38
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356391
Message ID:
01356392
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform