private void InicializaConexao()
 {
     TConexao.Open();
     _service = new JogoService(TConexao.unitofWork, TConexao.context);
 }
Exemple #2
0
 private void InicializaConexao()
 {
     TConexao.Open();
     _service            = new PratoService(TConexao.unitofWork, TConexao.context);
     _serviceRestaurante = new RestauranteService(TConexao.unitofWork, TConexao.context);
 }
 protected void Application_BeginRequest(object sender, EventArgs e)
 {
     TConexao.Open();
 }