public GolesService(ea2Context context)
        {
            ea2Context ctx = context;

            GolesRepository = new GolesRepository <T>(ctx);
        }
        public CantidadTotalGolesEquipoApiController()
        {
            ea2Context context = new ea2Context();

            golesService = new GolesService <GolesPorJugadorEquipo>(context);
        }
        public JugadoresService(ea2Context context)
        {
            ea2Context ctx = context;

            jugadoresRepository = new JugadoresRepository <T>(ctx);
        }
Пример #4
0
 public GolesRepository(ea2Context context)
 {
     ctx           = context;
     defaultObject = ctx.Set <T>();
 }