Print Page | Close Window

PrimaryKey problem

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=913
Printed Date: 11-Jun-2026 at 12:00am


Topic: PrimaryKey problem
Posted By: aladdin
Subject: PrimaryKey problem
Date Posted: 13-Aug-2008 at 10:27am
All works fine but,

when use primarykey not the increment field but other field,  after  modify  the primarykey field  and save ,

and reload the entitylist showing in list  the new entity and the old entity.

 1. If clear querycash  before reload is  ok .

 2. (  The EntityManager is not the same for viewing and editing , because the Cabana open new instance
        every time.)
     In viewer after editing and before reload, the modify entity is the old entity, but at others entities
     where the primarykey is the increment field the modify entity is the original entity.


Why happen this. Thanks



Print Page | Close Window