[ Dragan BL @ 10.03.2011. 15:04 ] @
Interesuje me da li Linq to Entities moze da izvrsi brisanje podataka iz tabele u jednom upitu. NPR Sql Upit DELETE FROM ime_tabele IN (1,2,3) Ne mogu da nadjem metodu koja bi to uradila dok u LINQ to SQL je to bilo DeleteAllOnSubimt Code: IQueryable<OSTALI_TROSKOVI> ostaliTroskovi = from ot in context.OSTALI_TROSKOVI where Idss.Contains(ot.OST_Id) select ot; context.DeleteObject(ostaliTroskovi); context.SaveChanges(); I naravno to ne radi :( |