Пример #1
0
        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);
        }
Пример #2
0
 public ValidationCallback(INstmTransaction transaction)
 {
     _transaction = transaction;
 }