示例#1
0
        public void Handle(InventoryItemRenamed message)
        {
            InventoryItemDetailsDto d = GetDetailsItem(message.Id);

            d.Name    = message.NewName;
            d.Version = message.Version;
        }
示例#2
0
        public void Handle(InventoryItemRenamed message)
        {
            //var item = BullShitDatabase.list.Find(x => x.Id == message.Id);
            ReadDBContext dbcontext = Readcontext;
            var           item      = dbcontext.InventoryItemList.FirstOrDefaultAsync(x => x.Id == message.Id).Result;

            item.Name = message.NewName;
            dbcontext.SaveChanges();
        }
示例#3
0
        public void Handle(InventoryItemRenamed message)
        {
            ReadDBContext           dbcontext = Readcontext;
            InventoryItemDetailsDto d         = GetDetailsItem(message.Id, dbcontext);

            d.Name    = message.NewName;
            d.Version = message.Version;
            dbcontext.SaveChanges();
        }
示例#4
0
        public void Handle(InventoryItemRenamed message)
        {
            var item = BullShitDatabase.list.Find(x => x.Id == message.Id);

            item.Name = message.NewName;
        }