static void Main() { //Configurations AutofacConfiguration.Configure(); Global.IsNameSpaceEnabled = true; DotLiquidConfiguration.Configure(); AutoMapperConfiguration.Configure(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Test //using (var scope = Global.Container.BeginLifetimeScope()) //{ // var templateService = scope.Resolve<IRetrieveDbObjectsRepository>(); // var result = templateService.GetColumnsWithKeys(); //} //Endof test using (var scope = Global.Container.BeginLifetimeScope()) { Application.Run(scope.Resolve <PocoGenerator>()); //Application.Run(scope.Resolve<TypeMapper>()); } }
private void mnuNameSpace_Click(object sender, EventArgs e) { var menu = (MenuItem)sender; if (menu == null) { return; } menu.Checked = !menu.Checked; Global.IsNameSpaceEnabled = menu.Checked; //Reload Templates for DotLiquid to Parse DotLiquidConfiguration.Configure(); }