public void InsertConc(tblConcerts concert, int group) { ConcertNotifierEntities1 concertDB = new ConcertNotifierEntities1(); var conc = new tblConcerts(); conc.concert_id = concert.concert_id; conc.group_id = group; conc.concert_city = concert.concert_city; conc.concert_date = concert.concert_date; conc.concert_link = concert.concert_link; conc.concert_place = concert.concert_place; conc.concert_title = concert.concert_title; concertDB.tblConcerts.Add(conc); concertDB.SaveChanges(); }
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(); }
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(); }