Пример #1
0
        public void InsertConcerts(Concert concert, int group)
        {
            ConcertNotifierEntities1 concertDB = new ConcertNotifierEntities1();
            var conc = new tblConcerts();

            conc.concert_id    = group + 1;
            conc.group_id      = group;
            conc.concert_city  = "Test location";
            conc.concert_date  = System.DateTime.Now;
            conc.concert_link  = "no url";
            conc.concert_place = "place location";
            conc.concert_title = "Test ";

            concertDB.tblConcerts.Add(conc);
            concertDB.SaveChanges();
        }
Пример #2
0
        public void InsertConcert(Concert concert, int group)
        {
            ConcertNotifierEntities1 concertDB = new ConcertNotifierEntities1();
            var conc = new tblConcerts();

            conc.concert_id    = concert.ID;
            conc.group_id      = group;
            conc.concert_city  = concert.Location;
            conc.concert_date  = concert.Date;
            conc.concert_link  = concert.Link;
            conc.concert_place = concert.Place;
            conc.concert_title = concert.Title;

            concertDB.tblConcerts.Add(conc);
            concertDB.SaveChanges();
        }