Click or drag to resize

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)
Syntax
public static MethodReturn<T> PerformSQLTransaction<T>(
	Func<SqlConnection, MethodReturn<T>> Transaction
)

Parameters

Transaction
Type: SystemFuncSqlConnection, MethodReturnT
Func that receives a SqlConnection object and return a MethodReturnT.

Type Parameters

T

Return Value

Type: MethodReturnT
MethodReturn of boolean: True if the transaction occurred without exceptions, false if not.
See Also