Exemplo n.º 1
0
        public static Leverancier Find(string key)
        {
            LeverancierSQLContext lsc = new LeverancierSQLContext();
            LeverancierRepository lr  = new LeverancierRepository(lsc);

            return(lr.Retrieve(key));
        }
Exemplo n.º 2
0
        public void Retrieve()
        {
            LeverancierSQLContext lsc = new LeverancierSQLContext();
            LeverancierRepository lr  = new LeverancierRepository(lsc);

            Leverancier l = lr.Retrieve("2");

            Assert.IsTrue(l.Plaats == "sadf");
        }
Exemplo n.º 3
0
        public void Create()
        {
            LeverancierSQLContext lsc = new LeverancierSQLContext();
            LeverancierRepository lr  = new LeverancierRepository(lsc);
            Leverancier           l   = lr.Retrieve("2");

            l.Naam = "Lars";
            //  lr.Create(l);
        }
Exemplo n.º 4
0
        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);
        }