Пример #1
0
        private void Application_Start(object sender, EventArgs e)
        {
            WindsorContainer container = InicializarContainer();

            _servicos = container.Resolve<IServicos>();
            _servicos.CriarDB();
            _servicos.InserirDadosTeste();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     
     WindsorContainer container = Global.InicializarContainer();
     _servicosDao = container.Resolve<IServicos>();
     
     try
     {
         _servicosDao.InserirDadosTeste();
         Response.Write("Dados inseridos com sucesso!");
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }