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