Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Register Biz Obj within console application
Message
From
23/10/2008 08:16:55
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, United States
 
 
To
22/10/2008 15:28:45
Timothy Bryan
Sharpline Consultants
Conroe, Texas, 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:
01356517
Views:
20
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:
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform