Update record with identical value raise exception
Posted: Sun 15 Jul 2012 12:34
Hello,
I have noticed that in MySQL, when you make a change to a record but the changes are actually identical to the original record (that is, taking a field with value “miki” and telling mysql to alter the content to “miki” ) it returns 0 rows affected.
This makes entity framework throw an exception.
I wonder if you are familiar with it... ?
Can you prevent such exception from raise at the dotConnect level?
Another question regarding entity framework migrations:
Currently I edit my migration classes to refer to the relevant database using Sql command for MySQL:
Sql("USE databaseName");
However, while this will work for MySQL, it will fail for Oracle / MsSql.
Is there a devart method to do that?
Best Regards,
Maya.
I have noticed that in MySQL, when you make a change to a record but the changes are actually identical to the original record (that is, taking a field with value “miki” and telling mysql to alter the content to “miki” ) it returns 0 rows affected.
This makes entity framework throw an exception.
I wonder if you are familiar with it... ?
Can you prevent such exception from raise at the dotConnect level?
Another question regarding entity framework migrations:
Currently I edit my migration classes to refer to the relevant database using Sql command for MySQL:
Sql("USE databaseName");
However, while this will work for MySQL, it will fail for Oracle / MsSql.
Is there a devart method to do that?
Best Regards,
Maya.