Still a bug with the table.Attach method :-(
Posted: Thu 09 Apr 2009 12:48
Hello
I have a Skins table with a column named ts of type timestamp. Within the EntityDeveloper I set the IsVersion flag for the ts column to true. Now I try to update a single skin row like this:
According to the DBMonitor the SubmitChanges command correctly executes the UPDATE statement. But after the UPDATE statement there's also the following SELECT statement to update my skin object with the newly timestamp value:
As you can see, there is a bug in the WHERE clause. You missed the AND keyword. Could you fix this in order that I am able to return my skin object with the refresed timestamp value?
Thanks and regards
[/code]
________
List of ferrari engines history
I have a Skins table with a column named ts of type timestamp. Within the EntityDeveloper I set the IsVersion flag for the ts column to true. Now I try to update a single skin row like this:
Code: Select all
MyDataContext.Skins.Attach(skin, true);
MyDataContext.SubmitChanges();
return skin;Code: Select all
SELECT ts FROM tbl_skins WHERE `SkinId` = :key1, ts = :key2Thanks and regards
[/code]
________
List of ferrari engines history