예제 #1
0
 //Inyextamos una instacion de ApplicationDbcontext en nuestro controlador
 public AutoresController(ApplicationDbContext context, ClaseB claseB,
                          ILogger <AutoresController> logger)
 {
     this.context = context;
     this.claseB  = claseB;
     this.logger  = logger;
 }
예제 #2
0
 public AutoresController(ApplicationDbContext context, ClaseB claseB, ILogger <AutoresController> logger, IMapper mapper)
 {
     this.context = context;
     this.claseB  = claseB;
     this.logger  = logger;
     this.mapper  = mapper;
     contextTable = context.Autores;
 }
예제 #3
0
 public ClaseA(IClaseB claseB)
 {
     this.claseB = claseB;
 }
예제 #4
0
 public AutoresController(ApplicationDBContext context, IClaseB claseB)
 {
     this.context = context;
     this.claseB  = claseB;
 }
예제 #5
0
 public AutoresController(ApplicationDbContext Context, IClaseB ClaseB)
 {
     _claseB  = ClaseB;
     _context = Context;
 }
 public AutoresController(ApplicationDbContext context, IClaseB claseB, IMapper mapper)
 {
     this.context = context;
     this.claseB  = claseB;
     this.mapper  = mapper;
 }
예제 #7
0
 public BooksController(ApplicationDBContext context, IClaseB claseB)
 {
     this.context = context;
     //test services
     this.claseB = claseB;
 }