Xaml.ViewModelBase

Xaml.ViewModelBase

Old forum URL: forums.lhotka.net/forums/t/11148.aspx


st3fanus posted on Sunday, February 12, 2012

hi all,

 

I have a confuse about :

MyViewModel derived from Xaml.ViewModelBase

has 2 difference actions :

1. If I Load a Model from inside that MyViewModel class

using BeginRefresh or Refresh, I can do a saving (  DoSave or BeginSave )

2. If I inject a Model on Constructor of MyViewModel from another ViewModel for example

and then i set Model = model on my constructor, Why My DoSave and BeginSave  not worked ??

 

thanks a lot

stefanus

RockfordLhotka replied on Monday, February 13, 2012

In what way does save not work? You get an exception?

JonnyBee replied on Monday, February 13, 2012

Hi,

I think your MyViewModel has ManageObjectLifetime set to false.

The ViewModel will only do Save operations when ManageObjectLifetime is set to true.

Copyright (c) Marimer LLC