Should I be using a transaction scope in c# written inside an Epicor function? Something like:
using (var txScope = IceContext.CreateDefaultTransactionScope()){
~Insert Code Here~
Db.Validate();
// Complete the transaction
txScope.Complete();
}
If so how to I get Db.Validate to work as I get an error message when trying to refer to the DB from a function like that. Thanks.