Example #1
0
 public JsonCommand Delete()
 {
     if (_currentWhere != null)
     {
         _filters.Add(new JsonFilter(_currentWhere));
     }
     _currentWhere = new JsonWhere(_itemType);
     _commandType  = JsonCommandType.Delete;
     return(new JsonCommand(_itemType));
 }
Example #2
0
 public JsonCommand Insert(object item)
 {
     if (_currentWhere != null)
     {
         _filters.Add(new JsonFilter(_currentWhere));
     }
     _currentWhere = new JsonWhere(_itemType);
     _commandType  = JsonCommandType.Insert;
     _item         = item;
     return(new JsonCommand(_itemType));
 }