Removing field from unique constraint unmaps field from entity

Posts   
 
    
Posts: 98
Joined: 10-Nov-2006
# Posted on: 02-Jul-2010 22:12:14   

v3.0 Final (June 28, 2010)

I have an Unique constraint on one of my tables, and I decided to remove one of the fields from the constraint. I went to the "Unique constraints" tab of the entity, clicked on the list of fields in the right hand column, then un-checked one of the fields.

First (minor) issue: After I click OK, that field still shows up as being part of the constraint until I change focus.

Second (bigger) issue: Now that that field is removed from the constraint, it's no longer mapped at all in the entity. In order to get it back, I had to click the "Reverse-engineer unmapped target fields" button. That's not the way it's supposed to be, is it?

Thanks,

Wesley

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 03-Jul-2010 10:55:16   

wesleysmith wrote:

v3.0 Final (June 28, 2010)

I have an Unique constraint on one of my tables, and I decided to remove one of the fields from the constraint. I went to the "Unique constraints" tab of the entity, clicked on the list of fields in the right hand column, then un-checked one of the fields.

First (minor) issue: After I click OK, that field still shows up as being part of the constraint until I change focus.

That's a problem when working with grids and winforms, I'm afraid: focus change on a cell makes the grid send the input and update itself.

Second (bigger) issue: Now that that field is removed from the constraint, it's no longer mapped at all in the entity. In order to get it back, I had to click the "Reverse-engineer unmapped target fields" button. That's not the way it's supposed to be, is it?

Reproduced, this is a bug. We'll fix this a.s.a.p.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 05-Jul-2010 13:11:05   

Fixed in next build (July 5th)

Frans Bouma | Lead developer LLBLGen Pro