public static List <Order> All() { OrderSQLContext osc = new OrderSQLContext(); OrderRepository or = new OrderRepository(osc); return(or.RetrieveAll()); }
public static Order Find(string key) { OrderSQLContext osc = new OrderSQLContext(); OrderRepository or = new OrderRepository(osc); return(or.Retrieve(key)); }
public static List <Order> FindOrderByGebruikerId(int gebruikerId) { OrderSQLContext osc = new OrderSQLContext(); OrderRepository or = new OrderRepository(osc); return(or.RetrieveByGebruikerId(gebruikerId)); }
public void All() { OrderSQLContext osc = new OrderSQLContext(); List <Order> oList = osc.RetrieveAll(); Assert.IsTrue(oList.Count > 0); }
public void SaveOrUpdate() { OrderSQLContext osc = new OrderSQLContext(); OrderRepository or = new OrderRepository(osc); if (Id != 0) { or.Update(this); } else { or.Create(this); } }
public void Delete() { OrderSQLContext osc = new OrderSQLContext(); osc.Delete("29"); }
public void Find() { OrderSQLContext osc = new OrderSQLContext(); Order o = osc.Retrieve("25"); }