Bug Report B133563
Visible to All Users

Cannot add the 'xxx' object with the = 'xxx' key to the object cache, because another 'xxx' object with the same key has already been added to it

created 16 years ago

Hi,
Use the project attached in my previous post. ID : B133558
Thanks
Akın GÜNEŞ
İletişim Yazılım
Steps to Reproduce:
Add a new Color Object.
With 1 Pantone in its Pantones collection.
Save the Color Object.
Clone the newly added Color object.
Change the Code property of the cloned Color object because Code is Unique.
Add a new Pantone to the Pantones Collection.
Save the Object.
You will get the error.
Try to Save again and get the another error.
Close the Form. Resfresh the List. Object is added despite of error.

Comments (1)
Dennis Garavsky (DevExpress) 16 years ago

    Hello Akin,
    We have fixed your bug. Currently, as a workaround you can rewrite your Oid property in the DbBaseObject as shown in the code below:

    C#
    [Persistent("OID";-) , Key(AutoGenerate = true)] Int32 oid = -1; public Int32 Oid { get { return oid; } }

    In the next version of the suite (8.3.5 and 9.1), keys will be entirely ignored when cloning, and you can return to your old definition if needed.
    Thanks,
    Dennis

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.