Beispiel #1
0
 public NoticiaServices(NoticiasDBContext NoticiaDB)
 {
     _NoticiaDB = NoticiaDB;
 }
Beispiel #2
0
 public NoticiaService(NoticiasDBContext noticiasDBContext)
 {
     _noticiasDBContext = noticiasDBContext;
 }
Beispiel #3
0
 public NoticiaService(NoticiasDBContext DBContext)
 {
     dBContext = DBContext;
 }
Beispiel #4
0
 public EstadosController(NoticiasDBContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public NoticiaService(NoticiasDBContext noticiaDBContext)
 {
     this._noticiaDBContext = noticiaDBContext;
 }
 public NoticiaServices(NoticiasDBContext noticiasDBContext)
 {
     noticiasDB = noticiasDBContext;
 }
Beispiel #7
0
 public UsuariosController(NoticiasDBContext context)
 {
     _context = context;
 }
Beispiel #8
0
        public readonly NoticiasDBContext _NoticiasDB; // <-- Definimos que el DBcontext solo será de lectura.

        public NoticiasServices(NoticiasDBContext noticiasDB)
        {
            _NoticiasDB = noticiasDB; // <-- Creamos nuestra inyección de independencias. Inyecctamos el DBcontext
        }
 public AdministradorsController(NoticiasDBContext context)
 {
     _context = context;
 }
Beispiel #10
0
 public ComentariosController(NoticiasDBContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public AutorService(NoticiasDBContext noticiasDbContext)
 {
     _noticiaDbContext = noticiasDbContext;
 }
 public CategoriasController(NoticiasDBContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public AutorsController(NoticiasDBContext context)
 {
     _context = context;
 }