Beispiel #1
0
 /// <summary>
 /// Remove the variable.
 /// </summary>
 public void Pop()
 {
     if (expression == null)
     {
         codeContext.DeleteValue(query);
     }
     else
     {
         codeContext.Add(query, expression);
     }
 }
Beispiel #2
0
 public void Pop()
 {
     if (_oldVal != null)
     {
         _context.AddInternal(_model, _oldVal);
     }
     else
     {
         _context.DeleteValue(_model);
     }
 }