/// <summary> /// インサート /// </summary> /// <param name="monitorserverfolder"></param> public void Insert(Entities.monitorServerFolder monitorserverfolder) { db.monitorServerFolders.Add(monitorserverfolder); db.SaveChanges(); }
/// <summary> /// 更新 /// </summary> /// <param name="monitorserverfolder"></param> public void Edit(Entities.monitorServerFolder monitorserverfolder) { db.Entry(monitorserverfolder).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// バックアップ設定のキー検索 /// </summary> /// <param name="ID"></param> /// <returns></returns> public Entities.monitorServerFolder GetById(int id) { Entities.monitorServerFolder monitorServerFolder = db.monitorServerFolders.Find(id); return(monitorServerFolder); }