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;
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.