I started suspecting that it would not work, because it checks
for an Integer, and the key should be a Long value. The problem is
that... it worked!
What does this mean? WO only supports 4 byte primary keys? That's
not good at all... please tell me I'm going crazy for no reason and
there's something tremendously obvious that I have missed.
Yours
Miguel Arroz
It is probably working because the cast of the pk is losing data, but
the pk is still unique. But it also sounds as though you already know
not to rely on this behavior.
I had not looked at the wikibook documentation you refer to. For what
you are trying to do, you may want to look at the
databaseContextNewPrimaryKey method in the EODatabaseContext.Delegate
class.