Hi,
I am having an unusual issue that I have never run into before.
General:
VS.Net 2003
Self Servicing
Ms Access
I have an object, CategoryEntity, which uses GUIDs (ReplicationID in Access) as a primary key. After I create an object and save it, it still has a value of 00000000-0000-0000-0000-000000000000, even after I call refetch. It has been added to the DB sucessfully, and assigned a propery GUID by the db.
The code is simply:
Dim oCat As New CategoryEntity
oCat.CategoryName = "category " & oLoop.ToString
... set properties ...
oCat.Save()
oCat.Refetch()
Console.WriteLine("Added Top Level cat: " & oCat.CategoryId.ToString)
CategoryID is the primary key and is set to autonumber and ReplicationID.
Should I be calling something else to refresh it after the save? Should I really have to refresh it after the save?
Thanks,
WCM