Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public bool TryGet(IData key, out IData record)
        {
            var command = new TryGetCommand(key);

            Execute(command);

            record = command.Record;

            return(record != null);
        }