|
SQLHandlerPerformSQLTransaction Method (FuncSqlConnection, MethodReturnBoolean)
|
Performs a SQL transaction.
Namespace:
CADSharpTools.Database
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic static MethodReturn<bool> PerformSQLTransaction(
Func<SqlConnection, MethodReturn<bool>> Transaction
)
Public Shared Function PerformSQLTransaction (
Transaction As Func(Of SqlConnection, MethodReturn(Of Boolean))
) As MethodReturn(Of Boolean)
Parameters
- Transaction
- Type: SystemFuncSqlConnection, MethodReturnBoolean
Func that receives a SqlConnection object and return a MethodReturnof Boolean.
Return Value
Type:
MethodReturnBooleanMethodReturn of boolean: True if the transaction occurred without exceptions, false if not.
See Also