Updating a relation?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
drichter
Posts: 20
Joined: Fri 21 Aug 2009 14:44

Updating a relation?

Post by drichter » Sat 26 Sep 2009 21:18

Hi,

iam trying to update a FK-relation like below...

If iam REMOVING the "SubmitChanges()" in the line that i've marked below, the set of "a.Calculated_bid_price" throws an error during the "SubmitChanges() at the bottom"...

the field "Calculated_bid_price" is not related to the "new_relation_entity"..


I really don't understand why this happens? Can you explain the logic here?

Code: Select all

            Entity_Table_XXX a = GetTable();
            Entitiy_YYY new_relation_entity = GetNewRealtionEntity();

            a.Relation_Entity= new_relation_entity;
            db.SubmitChanges(); // If i remove this line, the error with "calculated_bid_price" occurs

            a.Calculated_bid_price = a.Calculated_bid_price + 1;
            db.SubmitChanges();

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 28 Sep 2009 12:55

Thank you for the report, we have found the problem.
I will let you know about the results of our investigation.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 06 Oct 2009 13:13

We have fixed the problem. The fix will be uincluded in the nearest build.

Post Reply