Click or drag to resize

DataContext(String, IRazorEngine, ActionException) Constructor

Creates a new DataContext using the specified settingsCategory.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public DataContext(
	string settingsCategory,
	IRazorEngine razorEngine = null,
	Action<Exception> exceptionHandler = null
)
View Source

Parameters

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