Hi,
Here's the table structure in an MS Access database:
ImageSet table
ImageSetId - AutoNumber (Indexed with no duplicates)
Name - text
Image table
ImageId - AutoNumber (Indexed with no duplicates)
ImageSetId - foreign key from ImageSet table
Name - text
Now when I do something like:
ImageSetEntity ImageSet = new ImageSetEntity();
ImageSet.Name = 'new image set'
ImageSet.Save();
Soon after this, I try:
int ImageSetId = ImageSet.ImageSetId
or
int ImageSetId = ImageSet.ImageSetId.Value
and in the debug mode, I see that ImageSet.ImageSetId and ImageSet.ImageSetId.Value are both null.
For some reason, I'm not getting the 'identity' value from a newly added entity. Please let me know how to get around this issue.
Thanks for any help in advance,
Arun