Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Register Biz Obj within console application
Message
De
23/10/2008 08:16:55
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, États-Unis
 
 
À
22/10/2008 15:28:45
Timothy Bryan
Sharpline Consultants
Conroe, Texas, É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:
01356517
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform