public T Wrap <T>(T validatable) where T : IValidatable { INstmTransaction tx = NstmMemory.BeginTransaction(NstmTransactionIsolationLevel.ReadCommitted); IValidationCallback callback = new ValidationCallback(tx); validatable.ValidationCallback = callback; return(validatable); }
public ValidationCallback(INstmTransaction transaction) { _transaction = transaction; }