This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a view model that is being returned to the controller via post. I then get the entity model from the database using the id in the view model and call UpdateModel. This sets the entity model with most of the values from the view model. It won't set the bool values and always says they are false even though it is true coming in from the view model. It does set the change tracker, but it has both values as false. Am i missing something simple here? I have double checked the property names to make sure they are the same name and type. I can get it to update by manually updating as in exiting.Val = view.Val. Thanks for the help |
|
|
I have the same issue, but could solve it changing the boolean properties to be not nullable. Tom |
|
|
Thanks Tom, however that was the first thing I tried and it did not work. Still not sure what is happening. |
|
|
Are you using the LightSpeedEntityModelBinder or the default MVC model binder?
|
|
|
I was using the LightSpeedEntityModelBinder. Tom |
|
|
I was using the LightSpeedEntityModelBinder. Tom |
|
|
I tried it both ways. without this in the global.asax, LightSpeedEntityModelBinder.Register(typeof(XXModelUnitOfWork).Assembly); I get erorrs when I call UpdateModel. Craig |
|
|
Hi Craig, I believe we have tracked down the cause of this and we should have a fix committed into the 5.0 nightlies for this tomorrow. I will update this again once this has been merged in.
|
|
|
Just a quick update to let you know this has now been merged in and will be in tonights nightly build for 5.0.
|
|