//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; }
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; }
public ClaseA(IClaseB claseB) { this.claseB = claseB; }
public AutoresController(ApplicationDBContext context, IClaseB claseB) { this.context = context; this.claseB = claseB; }
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; }
public BooksController(ApplicationDBContext context, IClaseB claseB) { this.context = context; //test services this.claseB = claseB; }