Exemple #1
0
        public void Run()
        {
            Global.UserRightProvider.CanDo(Right.RightItem.DropTable);

            if (Parameters.Count != 1)
            {
                throw new ArgumentException("the number of parameters must be 1. Parameter 1 is table name.");
            }

            Data.DBProvider dbProvider = Data.DBProvider.GetDBProvider(Parameters[0], false);

            if (dbProvider == null)
            {
                OutputMessage(string.Format("Table name {0} does not exist!", Parameters[0]));
            }
            else
            {
                dbProvider.SetLastModifyTicks(DateTime.Now);
            }

            OutputMessage(string.Format("Reset cache for table {0} successul.", Parameters[0]));
        }