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

            return(lr.Retrieve(key));
        }
Esempio 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");
        }
Esempio 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);
        }
Esempio 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);
        }