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.
|
| 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.
|
| 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.
|
Provides methods that respond to HTTP requests in an ASP.NET MVC web site.
◆ Controller()
Creates a new instance of the type.
- Parameters
-
◆ LoadProperty< P >()
| void Csla.Web.Mvc.Controller.LoadProperty< P > |
( |
object | obj, |
|
|
PropertyInfo< P > | propertyInfo, |
|
|
P | newValue ) |
|
inlineprotected |
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.
◆ SaveObject< T >() [1/2]
| virtual bool Csla.Web.Mvc.Controller.SaveObject< T > |
( |
T | item, |
|
|
Action< T >? | updateModel, |
|
|
bool | forceUpdate ) |
|
inlineprotectedvirtual |
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.
◆ SaveObject< T >() [2/2]
| bool Csla.Web.Mvc.Controller.SaveObject< T > |
( |
T | item, |
|
|
bool | forceUpdate ) |
|
inlineprotected |
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.
◆ ApplicationContext
| ApplicationContext Csla.Web.Mvc.Controller.ApplicationContext |
|
getprotected |
The documentation for this class was generated from the following file: