Exemple #1
0
 public void DeleteSeries(int seriesID)
 {
     Entities.LibEntities dbCtx    = new Entities.LibEntities();
     Entities.Series      bkUpdate = dbCtx.Series.First(b => b.SeriesID == seriesID);
     dbCtx.Series.Remove(bkUpdate);
     dbCtx.SaveChanges();
 }
Exemple #2
0
 public void InsertSeries(Entities.Series objSeries)
 {
     Entities.LibEntities dbCtx = new Entities.LibEntities();
     dbCtx.Series.Add(objSeries);
     dbCtx.SaveChanges();
 }