|
DataContext(String, IRazorEngine, ActionException) Constructor
|
Creates a new
DataContext using the specified
settingsCategory.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax new :
settingsCategory : string *
?razorEngine : IRazorEngine *
?exceptionHandler : Action<Exception>
(* Defaults:
let _razorEngine = defaultArg razorEngine null
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> DataContext
GSF.Web.Model.DataContext = function(settingsCategory, razorEngine, exceptionHandler);
View SourceParameters
- settingsCategory String
- Setting category that contains the connection settings.
- razorEngine IRazorEngine (Optional)
- Razor engine instance to use for data context; set to null to use default embedded resources instance.
- exceptionHandler ActionException (Optional)
- Delegate to handle exceptions.
See Also