This question is locked. New answers and comments are not allowed.
Hi,
I have situation where entity with complex primary key (identities). Unfortunately, one of them is string/nvarchar (it is not in my power to change that).
That table is presented on the form for the user so that he can define multiple N:N relationships. Besides identity fields there is one more string/nvarchar field (Description) that is part of the same table.
When I try to update keys/identity fields I get message: "Unsupported Operation: Change of identity is not supported."
When I change Description field and try to delete record/object and add the new entity with same identities in same transaction I get:
"Instance of 'StanisteSvojtes' with identity '1120049971-A.1.1.1.1.-696' already exists in the cache of the object scope."
i cannot find solution.
Please advice.
I have situation where entity with complex primary key (identities). Unfortunately, one of them is string/nvarchar (it is not in my power to change that).
That table is presented on the form for the user so that he can define multiple N:N relationships. Besides identity fields there is one more string/nvarchar field (Description) that is part of the same table.
When I try to update keys/identity fields I get message: "Unsupported Operation: Change of identity is not supported."
When I change Description field and try to delete record/object and add the new entity with same identities in same transaction I get:
"Instance of 'StanisteSvojtes' with identity '1120049971-A.1.1.1.1.-696' already exists in the cache of the object scope."
i cannot find solution.
Please advice.