|
DataContextConfigureView(Type, Type, String, Object) Method
|
Configures a view establishing user roles based on modeled table model and SignalR hub.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic void ConfigureView(
Type model,
Type hub,
string routeID,
Object viewBag
)
Public Sub ConfigureView (
model As Type,
hub As Type,
routeID As String,
viewBag As Object
)
public:
void ConfigureView(
Type^ model,
Type^ hub,
String^ routeID,
Object^ viewBag
)
member ConfigureView :
model : Type *
hub : Type *
routeID : string *
viewBag : Object -> unit
function ConfigureView(model, hub, routeID, viewBag);
View SourceParameters
- model Type
- Modeled database table (or view) type.
- hub Type
- Type of SignalR hub that implements IRecordOperationsHub.
- routeID String
- Route ID for view, if any (e.g., AddNew or ShowDeleted).
- viewBag Object
- Current view bag.
Remarks
This is normally called from controller before returning view action result.
For normal MVC views the common route is "{controller}/{action}/{id}", the {id} of
the route is what is requested as the routeID parameter. In many
use cases this is a primary key or action value for the page, e.g., "ShowDeleted".
See Also