Turnkey MVC Controllers
No edit summary
No edit summary
Line 2: Line 2:


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


===== [[EcoController]] =====
===== [[EcoController]] =====
Implements support for a MVC Controller that uses an EcoSpace for persistence.
Implements support for an MVC Controller that uses an EcoSpace for persistence.


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


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


Note that function for [HttpPost]-ing writes data to the online viewmodel (and ecospace), 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''' 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 the persistent storage.
'''ONLINE''' VMClass is a VMClass backed by persistent storage.


===== TurnkeyController_Base =====
===== TurnkeyController_Base =====
Implements support for the MDrivenServer features. This includes connecting to the Admin ecospace of the server, downloading model and view etc.
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.
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 =====
===== AccountControllerBase =====
Implements ASP.NET security functions integrating them with a class model inside the running EcoSpace. This makes user information available to the business objects in your model.
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 ===
=== Complete Controller Overview ===
[[File:MVC ControllerClasses.png|none|thumb|1638x1638px]]
[[File:MVC ControllerClasses.png|none|thumb|1638x1638px]]


===== ApiController =====
===== ApiController =====
Built in controller in ASP.NET for API's. That is, responses without user interface.
The built-in controller in ASP.NET for APIs - that is, responses without a user interface.


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


The lower row (in the image above) supports streaming clients with functions to navigate, download objects, opening and closing modal windows etc.
The lower row (in the image above) supports streaming clients with functions to navigate, download objects, and opening and closing modal windows, etc.
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]
[[Category:MVC]]
[[Category:MVC]]

Revision as of 07:30, 17 February 2023

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 normal page-loading mechanism.

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

This page was edited 50 days ago on 03/26/2024. What links here