Пример #1
0
        public void Create(IEntityWithReocord _t, String clinic, Int32 oper)
        {
            _hisDataset.RegisterCreation((IAggregateRoot)_t, this);
            Record r = _hisDataset.recordRepository.GetNewEntity(
                _t.PID, _t.SaveDate, clinic, oper, _t.GetType().Name.ToUpper());

            _hisDataset.recordRepository.Create(r);
        }
Пример #2
0
        public void Delete(IEntityWithReocord _t, String clinic, Int32 oper)
        {
            _hisDataset.RegisterUpdate((IAggregateRoot)_t, this);
            Record r = _hisDataset.recordRepository.GetByKey(
                _t.PID, _t.SaveDate, _t.GetType().Name.ToUpper());

            if (r != null)
            {
                _hisDataset.recordRepository.Delete(r);
            }
        }