Provides methods that respond to HTTP requests in an ASP.NET MVC web site.
More...
|
bool | SaveObject< T > (T item, bool forceUpdate) |
| Performs a Save() operation on an editable business object, with appropriate validation and exception handling. More...
|
|
virtual bool | SaveObject< T > (T item, Action< T > updateModel, bool forceUpdate) |
| Performs a Save() operation on an editable business object, with appropriate validation and exception handling. More...
|
|
void | LoadProperty< P > (object obj, PropertyInfo< P > propertyInfo, P newValue) |
| Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
|
|
Provides methods that respond to HTTP requests in an ASP.NET MVC web site.
Definition at line 30 of file Controller.cs.
◆ LoadProperty< P >()
void Csla.Web.Mvc.Controller.LoadProperty< P > |
( |
object |
obj, |
|
|
PropertyInfo< P > |
propertyInfo, |
|
|
P |
newValue |
|
) |
| |
|
protected |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
- Template Parameters
-
- Parameters
-
obj | Object on which to call the method. |
propertyInfo | PropertyInfo object containing property metadata. |
newValue | The new value for the property. |
No authorization checks occur when this method is called, and no PropertyChanging or PropertyChanged events are raised. Loading values does not cause validation rules to be invoked.
Definition at line 192 of file Controller.cs.
◆ SaveObject< T >() [1/2]
virtual bool Csla.Web.Mvc.Controller.SaveObject< T > |
( |
T |
item, |
|
|
Action< T > |
updateModel, |
|
|
bool |
forceUpdate |
|
) |
| |
|
protectedvirtual |
Performs a Save() operation on an editable business object, with appropriate validation and exception handling.
- Template Parameters
-
T | Type of business object. |
- Parameters
-
item | The business object to insert. |
updateModel | Delegate that invokes the UpdateModel() method. |
forceUpdate | true to force Save() to be an update. |
- Returns
- true the Save() succeeds, false if not.
- Type Constraints
-
T | : | class | |
T | : | Core.ISavable | |
Definition at line 141 of file Controller.cs.
◆ SaveObject< T >() [2/2]
bool Csla.Web.Mvc.Controller.SaveObject< T > |
( |
T |
item, |
|
|
bool |
forceUpdate |
|
) |
| |
|
protected |
Performs a Save() operation on an editable business object, with appropriate validation and exception handling.
- Template Parameters
-
T | Type of business object. |
- Parameters
-
item | The business object to insert. |
forceUpdate | true to force Save() to be an update. |
- Returns
- true the Save() succeeds, false if not.
- Type Constraints
-
T | : | class | |
T | : | Core.ISavable | |
Definition at line 123 of file Controller.cs.