Base class used to create ViewModel objects that contain the Model object and related elements. More...
Public Member Functions | |
| virtual bool | Save (ModelStateDictionary modelState, bool forceUpdate) |
| Saves the current Model object if the object implements Csla.Core.ISavable. More... | |
Properties | |
| T | ModelObject [getset] |
| Gets or sets the Model object. More... | |
Properties inherited from Csla.Web.Mvc.IViewModel | |
| object | ModelObject [getset] |
| Object property for the contained business object More... | |
Base class used to create ViewModel objects that contain the Model object and related elements.
| T | Type of the Model object. |
| T | : | class |
Definition at line 22 of file Csla.Web.Mvc.Shared/ViewModelBase.cs.
|
virtual |
Saves the current Model object if the object implements Csla.Core.ISavable.
| modelState | Controller's ModelState object. |
| forceUpdate | if set to true force update. |
Definition at line 44 of file Csla.Web.Mvc.Shared/ViewModelBase.cs.
|
getset |
Gets or sets the Model object.
Definition at line 33 of file Csla.Web.Mvc.Shared/ViewModelBase.cs.