Exemple #1
0
        public static void ConferentieToevoegen(string naam, string beschrijving, DateTime inschrijvingslimiet, DateTime startInschrijvingen, int voorzitterId, int aantalDeelnemers)
        {
            ConferentieSysteemDataContext data = new ConferentieSysteemDataContext();
            Conferentie conferentie            = new Conferentie(naam, beschrijving, inschrijvingslimiet, startInschrijvingen, voorzitterId, aantalDeelnemers);

            data.Conferenties.InsertOnSubmit(conferentie);
            data.SubmitChanges();
        }
Exemple #2
0
        public static bool BestaatLink(Inschrijving inschrijving, Conferentie conferentie)
        {
            ConferentieSysteemDataContext data = new ConferentieSysteemDataContext();

            int a = (from icdl in data.InschrijvingConferntieDagLinks
                     where icdl.Inschrijving.ID == inschrijving.ID && icdl.ConferentieDag.Conferentie.ID == conferentie.ID
                     select icdl).Count();

            return(a >= 1);
        }
Exemple #3
0
        public static void UpdateConferentie(string naam, string bexchrijving, DateTime limiet, DateTime start, int maxDeelnemers)
        {
            ConferentieSysteemDataContext data = new ConferentieSysteemDataContext();

            Conferentie conf = (from c in data.Conferenties
                                where c.NaamConferentie == naam
                                select c).Single <Conferentie>();

            conf.Inschrijvingslimiet = limiet;
            conf.MaxDeelnemers       = maxDeelnemers;
            conf.Beschrijving        = bexchrijving;
            conf.NaamConferentie     = naam;
            conf.StartInschrijvingen = start;

            data.SubmitChanges();
        }