private ICommand TryGet(XTable table, ICommand command) { TryGetCommand cmd = (TryGetCommand)command; IData record = null; bool exist = table.TryGet(cmd.Key, out record); return(new TryGetCommand(cmd.Key, record)); }
public bool TryGet(IData key, out IData record) { var command = new TryGetCommand(key); Execute(command); record = command.Record; return(record != null); }