CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Web.Mvc.Controller Class Reference

Provides methods that respond to HTTP requests in an ASP.NET MVC web site. More...

Inheritance diagram for Csla.Web.Mvc.Controller:

Public Member Functions

 Controller (ApplicationContext applicationContext)
 Creates a new instance of the type.

Protected Member Functions

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.

Properties

ApplicationContext ApplicationContext [get]
 Gets a reference to the current ApplicationContext.

Detailed Description

Provides methods that respond to HTTP requests in an ASP.NET MVC web site.

Constructor & Destructor Documentation

◆ Controller()

Csla.Web.Mvc.Controller.Controller ( ApplicationContext applicationContext)
inline

Creates a new instance of the type.

Parameters
applicationContext

Member Function Documentation

◆ 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
PType of the property.
Parameters
objObject on which to call the method.
propertyInfoPropertyInfo object containing property metadata.
newValueThe 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
TType of business object.
Parameters
itemThe business object to insert.
updateModelDelegate that invokes the UpdateModel() method.
forceUpdatetrue to force Save() to be an update.
Returns
true the Save() succeeds, false if not.
Type Constraints
T :class 
T :Core.ISavable 

◆ 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
TType of business object.
Parameters
itemThe business object to insert.
forceUpdatetrue to force Save() to be an update.
Returns
true the Save() succeeds, false if not.
Type Constraints
T :class 
T :Core.ISavable 

Property Documentation

◆ ApplicationContext

ApplicationContext Csla.Web.Mvc.Controller.ApplicationContext
getprotected

Gets a reference to the current ApplicationContext.


The documentation for this class was generated from the following file: