|
DataContext(AdoDataConnection, Boolean, IRazorEngine, ActionException) Constructor
|
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic DataContext(
AdoDataConnection connection = null,
bool disposeConnection = false,
IRazorEngine razorEngine = null,
Action<Exception> exceptionHandler = null
)
Public Sub New (
Optional connection As AdoDataConnection = Nothing,
Optional disposeConnection As Boolean = false,
Optional razorEngine As IRazorEngine = Nothing,
Optional exceptionHandler As Action(Of Exception) = Nothing
)
public:
DataContext(
AdoDataConnection^ connection = nullptr,
bool disposeConnection = false,
IRazorEngine^ razorEngine = nullptr,
Action<Exception^>^ exceptionHandler = nullptr
)
new :
?connection : AdoDataConnection *
?disposeConnection : bool *
?razorEngine : IRazorEngine *
?exceptionHandler : Action<Exception>
(* Defaults:
let _connection = defaultArg connection null
let _disposeConnection = defaultArg disposeConnection false
let _razorEngine = defaultArg razorEngine null
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> DataContext
GSF.Web.Model.DataContext = function(connection, disposeConnection, razorEngine, exceptionHandler);
View SourceParameters
- 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