Beispiel #1
0
 private void SaveToDB(Persoon NieuwPersoon, Persoon OrigineelPersoon)
 {
     using (JoinedDBEntities ctx = new JoinedDBEntities())
     {
         ctx.Persoons.
     }
 }
Beispiel #2
0
 private void SaveToDB(Persoon NieuwPersoon)
 {
     using (JoinedDBEntities ctx = new JoinedDBEntities())
     {
         ctx.Persoons.Add(NieuwPersoon);
         ctx.SaveChanges();
     }
 }
Beispiel #3
0
        private void FillListBox()
        {
            using (JoinedDBEntities ctx = new JoinedDBEntities())
            {
                var query = ctx.Persoons.Select(x => x).ToList();

                lbPersonen.DisplayMember = "Voornaam";
                lbPersonen.ValueMember   = "Id";
                lbPersonen.DataSource    = query;
            }
        }