public static void Remove_Year(int YearToRemove) { var context = new DataBaseConnectionContext(); var FindList = context.STK.Where(u => u.Year == YearToRemove).ToList(); context.Remove(FindList); context.SaveChanges(); }
public static void RemoveList(IEnumerable <PNCMonthlyDB> ListaPNC) { var context = new DataBaseConnectionContext(); foreach (PNCMonthlyDB PNC in ListaPNC) { context.Remove(PNC); } context.SaveChanges(); }
public static void RemoveData(IEnumerable <SumRevisionQuantityDB> ListToRemove) { var context = new DataBaseConnectionContext(); foreach (var ToRemove in ListToRemove) { context.Remove(ToRemove); } context.SaveChanges(); }
public static void RemoveList(IEnumerable <ANCRevisionDB> ListANC) { var context = new DataBaseConnectionContext(); foreach (ANCRevisionDB ANC in ListANC) { context.Remove(ANC); } context.SaveChanges(); }