private static void MainEspecificClass(string[] args, bool UsePathProjects, HelperSysObjectsBase sysObject)
 {
     PrinstScn.WriteLine($"Atualizando / Criando Contextos ou classes especificas! [{args.LastOrDefault()}]");
     foreach (var item in sysObject.Contexts)
     {
         sysObject.MakeClass(item, args[1], UsePathProjects);
     }
 }
Example #2
0
        private static void MainWithOutConfirmation(string[] args, bool UsePathProjects, HelperSysObjectsBase sysObject)
        {
            PrinstScn.WriteLine("Atualizando / Criando todos os Contextos");

            foreach (var item in sysObject.Contexts)
            {
                PrinstScn.WriteLine(item.Namespace);
                sysObject.MakeClass(item, UsePathProjects);
            }
        }
Example #3
0
        private static void MainWithConfirmation(string[] args, bool UsePathProjects, HelperSysObjectsBase sysObject)
        {
            PrinstScn.WriteLine("Atualizando / Criando Contextos ou classes especificas!");

            foreach (var item in sysObject.Contexts)
            {
                PrinstScn.WriteLine("Deseja Atualizar/Criar o Contexto? {0} [S=Sim, N=Não]", item.Namespace);
                var accept = Console.ReadLine();
                if (accept == "s")
                {
                    PrinstScn.WriteLine("Deseja Escolher uma classe, Digite o nome dela?");
                    var className = Console.ReadLine();
                    if (!string.IsNullOrEmpty(className))
                    {
                        sysObject.MakeClass(item, className, UsePathProjects);
                    }
                    else
                    {
                        sysObject.MakeClass(item);
                    }
                }
            }
        }