Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Register Biz Obj within console application
Message
From
23/10/2008 12:06:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
23/10/2008 08:16:55
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:
01356637
Views:
16
>Tim,
>
>Thanks for the reply. I have already try the method you suggested. What I get is a NullReferenceException on the GetEntity statement in my BO.
>
>The following is my console app:

Oh, yea it needs the app object, I forgot. I see Kevin got you that info. Great!
Tim

>
>
>using System;
>using System.Collections.Generic;
>using System.Text;
>using System.Data;
>
>using BMWED.Common.Business;
>using OakLeaf.MM.Main.Collections;
>
>namespace Build_Members_Reporting_Table
>{
>    class Program
>    {
>        static void Main(string[] args)
>        {
>            Name oName = new Name();
>            oName.GetNameByIDNum("000031000");
>        }
>    }
>}
>
>
>My BO method looks like this:
>
>
>        public NameEntity GetNameByIDNum(string IDNum)
>        {
>            this.GetEntity("sp_GetNameByIDNum",
>                            CommandType.StoredProcedure,
>                            CreateParameter("@IDNum", IDNum));
>
>            return this.Entity;
>        }
>
>
>Thanks,
>
>Rick
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform