Subsonic 3.0.0.3 doesent seems to update the database

im using subsonic 3.0.0.3 activerecord and everything is fine and i dont get any error but when i update the database it never seems to be real, can anyone notice something that i am missing here? ! that

code:

var myquote = createNewQuote();

var gross = 36.00;

myquote.totalcost = gross;  // set the new value in my model

UpdateModel(myquote); // update the model, something to do with dirty columns??

if(ModelState.IsValid) // check to make sure i have no errors in my model after changing it
            myquote.Update(); // command that is supposed to update the database????

      

I put a breakpoint on UpdateModel and looked into the model and the value is in the model as instructed, I get no error and the modelstate is also valid, but when I look into the database, the totalcost is not actually changed for that record ????

I also tried .Save () but that doesn't seem to change anything either ?????

I'm a little bit puzzled

+2


source to share


3 answers


Not sure if this fixes your problem, but I know that a few bugs have been fixed here that helped me with a few problems I had.



Go to: http://github.com/subsonic/SubSonic-3.0/tree/master

+2


source


There was a bug in version 3.0.0.1 that I quickly removed with 3.0.0.2, which was blocking updates in certain scenarios using ActiveRecord. The current version is 3.0.0.3 - you must update.



+2


source


Subsonic is not stable yet. You end up wasting your time looking. (world!)

to solve your problem try this.



myquote.SetIsLoaded (true);

0


source