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