Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with RegisterPrimaryBizObject
Message
 
To
25/06/2008 17:23:08
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:
01326765
Message ID:
01326789
Views:
15
Tim, Thanks. That took care of the problem.

>Linda,
>
>Right off I see you have some class name ambiguity. You are naming your form class MedicalReview and your business object appears to also be named MedicalReview. I would suggest you rename your form to something else like maybe MedicalReviewManager or something. I suspect this is your problem.
>Tim
>
>>For some reason I am getting an error on the line to register a primary business object. The business object has been created using the MM Business Layer Generator and has not been modified. This same syntax works just fine on another similar form with a similar business object. I can't imagine that there is a reserve word there. Any ideas as to what may be causing the problem?
>>
>>The errors are:
>>-- Error 1 The best overloaded method match for 'OakLeaf.MM.Main.Windows.Forms.mmBusinessBaseForm.RegisterPrimaryBizObj(OakLeaf.MM.Main.Business.mmBaseBusinessObject)' has some invalid arguments E:\Shared\Development\LCCTrack\LCC Track System CSharp\MedicalReview.cs 34 45 LCC Track System CSharp
>>
>>and
>>
>>Error 2 Argument '1': cannot convert from 'ECI.LCCTrack.MedicalReview' to 'OakLeaf.MM.Main.Business.mmBaseBusinessObject' E:\Shared\Development\LCCTrack\LCC Track System CSharp\MedicalReview.cs 34 72 LCC Track System CSharp
>>
>>
>>The code from the form is listed below. Thanks.
>>
>>
>>
>>    public partial class MedicalReview : mmBusinessForm
>>    {
>>        private MedicalReview oMedicalReview;
>>        private ClaimantCode oClaimantCode;
>>        private Client oClient;
>>        private VW_ECIStaff oVW_ECIStaff;
>>        private Patient oPatient;
>>        private VW_MedReviewPatient oVW_MedReviewPatient;
>>
>>        /// <summary>
>>        /// Constructor
>>        /// </summary>
>>        public MedicalReview()
>>        {
>>            oMedicalReview = (MedicalReview)this.RegisterPrimaryBizObj(new MedicalReview());
>>            oClaimantCode = (ClaimantCode)this.RegisterBizObj(new ClaimantCode());
>>            oClient = (Client)this.RegisterBizObj(new Client());
>>            oVW_ECIStaff = (VW_ECIStaff)this.RegisterBizObj(new VW_ECIStaff());
>>            oPatient = (Patient)this.RegisterBizObj(new Patient());
>>            oVW_MedReviewPatient = (VW_MedReviewPatient)this.RegisterBizObj(new VW_MedReviewPatient());
>>
>>            InitializeComponent();
>>        }
>>    }
>>
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform