ID generator Problem
Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1831
Printed Date: 21-Apr-2026 at 12:19pm
Topic: ID generator Problem
Posted By: vinothvdp
Subject: ID generator Problem
Date Posted: 20-May-2010 at 2:04am
Hi,
I have problem to save the record,i am getting error as per the attachment
kindly help me.
the exception message is
"Save failed - IdGenerator problem - unable to convert all temp ids to permanent ids/nThis may be caused by the server not being able to locate an IIdGenerator instance via probing/nor it can be caused by not providing a corresponding real id for each temp id in the GetRealIdMap/nmethod of your IIdGenerator implementation."
Thank you
|
Replies:
Posted By: IdeaBlade
Date Posted: 21-May-2010 at 4:26pm
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 Resources in the following folder:
Learning
Resources\040_BusObjPersistence\AddingDeleting\Snippets\NumericIdGenerator
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.
You may also wish to read the material in the Object
Persistence chapter on "Generating Unique Identifiers". The section on
"ID Fixup", in particular, contains from information about using an
IIdGenerator implementation.
|
Posted By: GregD
Date Posted: 29-Jun-2010 at 12:21pm
|
There were issues with the use, with Silverlight, of the NumericIdGenerator sample in the Learning Resources. We've updated that sample, which is now used in the _DocumentSnippets solution associated with the Object Persistence chapter.
|
|