public void UpdateInstallationVersionNumber(Version newVersion, SqlTransaction transaction)
{
string sql = "subtext_VersionAdd";
SqlParameter[] p =
{
CreateParameter("@Major", SqlDbType.Int, 4, newVersion.Major),
CreateParameter("@Minor", SqlDbType.Int, 4, newVersion.Minor),
CreateParameter("@Build", SqlDbType.Int, 4, newVersion.Build)
};
SqlHelper.ExecuteNonQuery(transaction, CommandType.StoredProcedure, sql, p);
}