public JsonCommand Delete() { if (_currentWhere != null) { _filters.Add(new JsonFilter(_currentWhere)); } _currentWhere = new JsonWhere(_itemType); _commandType = JsonCommandType.Delete; return(new JsonCommand(_itemType)); }
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)); }