Пример #1
0
        public void Store(bool isUsingNew)
        {
            var now = DateTime.Now;

            this.UpdatedDateTime = now;
            base.Store();

            RoomStandardItem.Delete(this.Id, isUsingNew);
            if (this.StandardItems != null)
            {
                foreach (var item in this.StandardItems)
                {
                    item.RoomId          = this.Id;
                    item.UpdatedDateTime = now;
                    item.Store(isUsingNew);
                }
            }
        }
Пример #2
0
 public override void Drop()
 {
     RoomStandardItem.Delete(this.Id, true);
     RoomStandardItem.Delete(this.Id, false);
     base.Drop();
 }