Turnkey MVC Controllers
(Adding message template to the top of the page)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
[[File:ControllerClasses, not streaming.png|thumb|723x723px]]
[[File:ControllerClasses, not streaming.png|thumb|625x625px]]


===== Controller =====
===== Controller =====
The built-in MVC Controller
The built-in MVC Controller


===== [[EcoController]] =====
===== [[Documentation:EcoController|EcoController]] =====
Implements support for an MVC Controller that uses an EcoSpace for persistence.
Implements support for an MVC Controller that uses an EcoSpace for persistence.


Line 15: Line 15:
Note that the function for [HttpPost]-ing writes data to the online ViewModel (and ecospace) and other functions don't.
Note that the function for [HttpPost]-ing writes data to the online ViewModel (and ecospace) and other functions don't.


'''OFFLINE''' VMClass is a VMClass created when a request arrives from the client. It contains values written by the client and is Submitted/Applied to the online VMClass.
'''OFFLINE'''  


'''ONLINE''' VMClass is a VMClass backed by persistent storage.
VMClass is a VMClass created when a request arrives from the client. It contains values written by the client and is Submitted/Applied to the online VMClass.
 
'''ONLINE'''  
 
VMClass is a VMClass backed by persistent storage.


===== TurnkeyController_Base =====
===== TurnkeyController_Base =====
Line 28: Line 32:


=== Complete Controller Overview ===
=== Complete Controller Overview ===
[[File:MVC ControllerClasses.png|none|thumb|1638x1638px]]
[[File:MVC ControllerClasses.png|none|thumb|919x919px]]


===== ApiController =====
===== ApiController =====
Line 39: Line 43:
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]
[[Category:MVC]]
[[Category:MVC]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}


[[Category:TOC]]
[[Category:TOC]]

Latest revision as of 05:17, 23 January 2025

This page was created by Lars.olofsson@mdriven.net on 2017-07-03. Last edited by Stephanie@mdriven.net on 2025-01-23.
ControllerClasses, not streaming.png
Controller

The built-in MVC Controller

EcoController

Implements support for an MVC Controller that uses an EcoSpace for persistence.

Includes support for an EcoSpace cache provider and a mechanism that stores the EcoSpace on TempData during redirect.

ModelDrivenControllerBase

ModelDrivenControllerBase is a subclass of EcoController with additions to handle features such as ViewModels, Actions, navigation, etc.

Note that the function for [HttpPost]-ing writes data to the online ViewModel (and ecospace) and other functions don't.

OFFLINE

VMClass is a VMClass created when a request arrives from the client. It contains values written by the client and is Submitted/Applied to the online VMClass.

ONLINE

VMClass is a VMClass backed by persistent storage.

TurnkeyController_Base

Implements support for the MDrivenServer features. This includes connecting to the Admin ecospace of the server, downloading the model and view, etc.

It also includes using the majority of other features available in the Framework, like Bootstrap rendering of ViewModels, databinding serverside using MVC or client-side using AngularJS, and the streaming API.

AccountControllerBase

Implements ASP.NET security functions and integrates them with a class model inside the running EcoSpace. This makes user information available to the business objects in your model.

Complete Controller Overview

MVC ControllerClasses.png
ApiController

The built-in controller in ASP.NET for APIs - that is, responses without a user interface.

ValuesController_Base

The upper row (in the image above) supports the MVC (non-streaming) clients with functions "on the side" of the usual page-loading mechanism.

The lower row (in the image above) supports streaming clients with functions to navigate, download objects, and the opening and closing of modal windows, etc.