Exemplo n.º 1
0
        /// <summary>
        /// inserts update into the database
        /// </summary>
        /// <param name="updateVersion">version of update</param>
        /// <param name="updateName">name of update</param>
        /// <param name="updateDescription">description of update</param>
        /// <param name="gameId">id of game</param>
        public Update(string updateVersion, string updateName, string updateDescription, int gameId)
        {
            UpdateVersion     = updateVersion;
            UpdateName        = updateName;
            UpdateDescription = updateDescription;
            GameId            = gameId;

            Id = DbUpdate.InsertUpdate(updateVersion, updateName, updateDescription, gameId);
            DbUpdate.setAsCurrent(gameId, Id);
        }