コード例 #1
0
        public void UpdateDatabaseObject()
        {
            Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(_generalInfo);
            List <string> items = databaseManager.SetObjects(DTO.Enum.ObjectType.All, "vwa_EZoneAirwayBills");

            Assert.NotNull(items);
        }
コード例 #2
0
        public void UpdateDatabaseViews()
        {
            Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(_generalInfo);
            List <string> items = databaseManager.SetObjects(DTO.Enum.ObjectType.Views);

            Assert.NotNull(items);
        }
コード例 #3
0
        private static void ExecuteTaskTwo(GeneralInfo generalInfo, string[] args)
        {
            Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(generalInfo);
            DTO.Enum.ObjectType        objectType      = DTO.Enum.ObjectType.All;
            string objectName = string.Empty;
            string schemaName = string.Empty;

            if (args.Length > 3)
            {
                objectName = args[3];
            }

            if (args.Length > 4)
            {
                schemaName = args[4];
            }

            if (args.Length > 5)
            {
                objectType = (DTO.Enum.ObjectType)Enum.Parse(typeof(DTO.Enum.ObjectType), args[5]);
            }

            List <string> result = databaseManager.SetObjects(objectType, objectName, schemaName);

            if (generalInfo.GenerateReport)
            {
                databaseManager.SaveReport(result);
            }
        }