// See https://aka.ms/new-console-template for more information using System.Reflection; using Quadarax.Foundation.Core.QConsole; using Quadarax.Foundation.Core.QConsole.Configuration; using Quadarax.Foundation.Core.QConsole.Context; using Quadarax.Foundation.Core.Reflection.Extensions; /* var options = new DbContextOptions(); using (var ctx = new QlbrcDbContext(options)) { var result = ctx.Database.EnsureCreated(); Console.WriteLine($"Database created: {result}"); } */ var config = new StartupConfiguration(Quadarax.Application.QLiberace.Console.Constants.General.Name, Assembly.GetExecutingAssembly().GetName().Version); config.ConsoleCopyright = Assembly.GetExecutingAssembly().GetCopyright(); config.AllowInteractive = false; config.WaitOnKeyInNonInteractiveMode = false; config.CommandDefinitionAssebmly = new[]{Assembly.GetEntryAssembly()}; config.DisableDefaultCommands(); config.ShowStatusOnEveryCommand = false; config.IsConsoleDebug = false; var console = new Engine(config, new DefualtEngineContext(), args); console.Start(); Environment.Exit(console.ReturnCode);;