If you call GenerateId() on an EntityManager, it must have access to a
valid implementation of DevForce's IIdGenerator interface. You can find
samples of that in the Learning Units in the following folder:
LearningUnits\100 Fundamentals\Adding and Deleting Business Objects\02 Code CSharp\Snippets
The
class that implements IIdGenerator must be included in an assembly that
is listed as a DevForce probe assembly.
An easy way to satisfy that
requirement is to include it in the assembly that contains your domain
model.Additional resources:
- the tutorial "Ex_Add and Delete Business Objects.doc" in the same Learning Unit.
- the material in the Object
Persistence chapter of the Developers Guide on "Generating Unique Identifiers". The section on
"ID Fixup", in particular, contains from information about using an
IIdGenerator implementation.