[Mono-dev] [ADO.NET] AutoIncrement fields, unique constraints and updates

T Senganal tsenganal at novell.com
Sun Mar 5 03:07:02 EST 2006


Hi 

>>Everything works fine until I try to update a row
>>and store the modified dataset back in the database. At this point,
>>UniqueConstraint throws an exception for the row being updated,
claiming
>>that its auto-increment field's value is taken (which is,
technically, true
>>as this field is the one that contains the "non-unique value").

The UpdateCommand generated by CommandBuilder shouldn't try to modify
an auto-increment field on the database.. 
This is definitely a bug ..  please file a bug report.. 

Not sure, if this  solves the problem .. Pls post some sample code..

Regards
Senga




More information about the Mono-devel-list mailing list