Print Page | Close Window

using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4092
Printed Date: 24-Oct-2025 at 4:57pm


Topic: using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID
Posted By: kdev
Subject: using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID
Date Posted: 03-Apr-2013 at 9:43am
Hi,

If a create a new entity in the EntityServerSaveInterceptor and add it to the EntityManager using AddEntity it generates a temporary ID in the Release or Debug mode.
When I use the Fakestore mode, after adding the entity to the EntityManager, the ID stay to 0. 

Is this a limitation or a bug ?


In this post  http://www.ideablade.com/forum/forum_posts.asp?TID=3918&title=cannot-get-result-of-a-parametrized-named-query-using-fakestore-mode - http://www.ideablade.com/forum/forum_posts.asp?TID=3918&title=cannot-get-result-of-a-parametrized-named-query-using-fakestore-mode  I had a similar problem, the parametrized query weren't at that time supported by the Fakestore mode.
Are there a lot of functions that aren't supported in this mode ? if so maybe you should advertise it because seeing this feature in Cocktail, anyone can think any code will work in both modes (debug/release or fakestore) and that's actually not true.

Regards



Replies:
Posted By: sbelini
Date Posted: 04-Apr-2013 at 4:49pm
kdev,

This issue is a bug.

The fix will be available in the next release of DevForce2012.




Print Page | Close Window