Views: 1.4K
Replies: 0
Archived
|
UnitOfWork insert and delete on the same tableHi. I get a stuck on how to delete and insert on the same table. I'm use UnitOfWork.
using (var uow = new ArtUnitOfWork()) { var cart = db.Carts.Single(Id); uow.Delete(cart); var cart = new Cart(true) { Cookie = cookie.Value }; uow.Insert(cart); } Please help me! thai duong, Oct 03, 2017
|