public static Leverancier Find(string key) { LeverancierSQLContext lsc = new LeverancierSQLContext(); LeverancierRepository lr = new LeverancierRepository(lsc); return(lr.Retrieve(key)); }
public void Retrieve() { LeverancierSQLContext lsc = new LeverancierSQLContext(); LeverancierRepository lr = new LeverancierRepository(lsc); Leverancier l = lr.Retrieve("2"); Assert.IsTrue(l.Plaats == "sadf"); }
public void Create() { LeverancierSQLContext lsc = new LeverancierSQLContext(); LeverancierRepository lr = new LeverancierRepository(lsc); Leverancier l = lr.Retrieve("2"); l.Naam = "Lars"; // lr.Create(l); }
public void Update() { LeverancierSQLContext lsc = new LeverancierSQLContext(); LeverancierRepository lr = new LeverancierRepository(lsc); Leverancier l = lr.Retrieve("2"); l.Naam = l.Naam + "AAngepast"; lr.Update(l); }