|
DataContextConfigureViewTModel, THub(String, Object) Method
|
Configures a view establishing user roles based on modeled table TModel and SignalR THub.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax public:
generic<typename TModel, typename THub>
where TModel : ref class, gcnew()
where THub : gcnew(), IRecordOperationsHub
void ConfigureView(
String^ routeID,
Object^ viewBag
)
JavaScript does not support generic types or methods.
View SourceParameters
- routeID String
- Route ID for view, if any (e.g., AddNew or ShowDeleted).
- viewBag Object
- Current view bag.
Type Parameters
- TModel
- Modeled database table (or view).
- THub
- SignalR hub that implements IRecordOperationsHub.
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