Пример #1
0
 /// <summary>
 /// Saves the changes.
 /// </summary>
 /// <returns></returns>
 public int SaveChanges()
 {
     return(Db.SaveChanges());
 }
Пример #2
0
        /// <summary>
        /// Commits this instance.
        /// </summary>
        /// <returns></returns>
        public CommandResponse Commit()
        {
            var rowsAffected = _context.SaveChanges();

            return(new CommandResponse(rowsAffected > 0));
        }