Example #1
0
        public int Update(Member member)
        {
            int changes = 0;

            db.Update(member);
            //SaveChanges is transactional by nature.
            changes = db.SaveChanges();
            return(changes);
        }
Example #2
0
 /// <summary>
 /// Updates a volume entity in the database
 /// </summary>
 /// <param name="volume"></param>
 /// <returns>The number of rows changed</returns>
 public int Update(Volume volume)
 {
     _context.Update(volume);
     return(_context.SaveChanges());
 }