Click or drag to resize

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

Parameters

Transaction
Type: SystemFuncSqlConnection, MethodReturnBoolean
Func that receives a SqlConnection object and return a MethodReturnof Boolean.

Return Value

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