示例#1
0
文件: Group.cs 项目: CarverLab/Oyster
        public void Update(string Description)
        {
            try
            {
                string sSQL = "UPDATE tblGroup SET Description = '" + Description + "' WHERE Id =" + mvarID;

                OysterClassLibrary.Functions F = new OysterClassLibrary.Functions();
                Description = F.CheckSqlSafeString(Description);

                int numrecs = F.ExecuteNonQuery(sSQL);
            }
            catch(Exception Err)
            {
                throw new ApplicationException(Err.Message,Err.InnerException);
            }
        }