New Posts New Posts RSS Feed: ID generator Problem
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

ID generator Problem

 Post Reply Post Reply
Author
GregD View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 374
Post Options Post Options   Quote GregD Quote  Post ReplyReply Direct Link To This Post Topic: ID generator Problem
    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.
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
vinothvdp View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Sep-2007
Location: India
Posts: 27
Post Options Post Options   Quote vinothvdp Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down