Back to list
Views:   1.4K
Replies:  0

UnitOfWork insert and delete on the same table

Hi. 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);

    var cart = new Cart(true) { Cookie = cookie.Value };

 Please help me!
thai duong, Oct 03, 2017

Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0