1#if !NETSTANDARD2_0 && !NETCORE3_1 && !NET5_0
10using System.Collections.Generic;
26 get {
return ModelObject; }
27 set { ModelObject = (T)value; }
33 public T ModelObject {
get;
set; }
44 public virtual bool Save(ModelStateDictionary modelState,
bool forceUpdate)
50 throw new InvalidOperationException(
"Save");
52 ModelObject = (T)savable.Save(forceUpdate);
57 if (ex.BusinessException !=
null)
58 modelState.AddModelError(
"", ex.BusinessException.Message);
60 modelState.AddModelError(
"", ex.Message);
65 modelState.AddModelError(
"", ex.Message);
This exception is returned for any errors occurring during the server-side DataPortal invocation.
Base class used to create ViewModel objects that contain the Model object and related elements.
virtual bool Save(ModelStateDictionary modelState, bool forceUpdate)
Saves the current Model object if the object implements Csla.Core.ISavable.
Specifies that the object can save itself.
Defines a CSLA .NET MVC viewmodel object.
object ModelObject
Object property for the contained business object