public static void DeleteAll() { MariosSpecialtyProductsContext db = new MariosSpecialtyProductsContext(); db.Products.RemoveRange(db.Products.ToList()); db.SaveChanges(); }
public EFReviewRepository(MariosSpecialtyProductsContext connection = null) { if (connection == null) { this.db = new MariosSpecialtyProductsContext(); } else { this.db = connection; } }