Hello,
Having a bit of a hitch here and am a bit lost on how to proceed.
I managed to get an object opened using the OpenID method in C#
so something like ...
object myPatient = new object();
myPatient = factory.OpenId("PatientDB.patientInfo", "1", 0);
Now, the annoying thing is that I cannot get any information about
myPatient. So I cannot get ....... myPatient.firstName or
myPatient.Lastname
so if I add this line:
System.Console.WriteLine(myPatient.firstName);
the program won't even compile...
I can sort of understand why.....since .NET would have no idea
of the existance of firstName and lastName attributes.
To try fixing that, I even created a PatientInfo object that would
have the same attributes as the PatientDB.patientInfo table
and then tried typecasting it as such..
PatientInfo myPatient = new PatientInfo();
myPatient = (PatientInfo)factory.OpenId("PatientDB.patientInfo", "1",
0);
but at that point, it gives an "Invalid typecast" error
.....................
So....I'm quite lost at this point. I tried googling for examples, but
I couldn't find even one....where VB .NET or VC# .NET and Cache were
used together. most of them seem to use VB6 which seems to be slightly
different in handling objects.
Would really appreciate if..someone could guide me on the right path
about the above problem
Regards,
Himanshu