예제 #1
0
        //Update / Edit
        void IBugRepository.UpdateBug(BugLog bug)
        {
            BugLog tmpBug = bugDB.BugLogs.Single(b => b.BugID == bug.BugID);

            tmpBug.Title       = bug.Title;
            tmpBug.Description = bug.Description;
            tmpBug.Created     = bug.Created;
            tmpBug.UserID      = bug.UserID;
            tmpBug.PriorityID  = bug.PriorityID;
            tmpBug.StatusID    = bug.StatusID;

            bugDB.SaveChanges();
        }
예제 #2
0
 //Delete
 void IBugRepository.DeleteBug(BugLog bug)
 {
     bugDB.BugLogs.Remove(bug);
     bugDB.SaveChanges();
 }
예제 #3
0
 //Add
 void IBugRepository.AddBug(BugLog bug)
 {
     bugDB.BugLogs.Add(bug);
     bugDB.SaveChanges();
 }