Click or drag to resize

DataContext(AdoDataConnection, Boolean, IRazorEngine, ActionException) Constructor

Creates a new DataContext.

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

Parameters

connection  AdoDataConnection  (Optional)
AdoDataConnection to use; defaults to a new connection.
disposeConnection  Boolean  (Optional)
Set to true to dispose the provided connection.
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