public UnitOfWork(CursoMvcContext context) { _context = context; }
public ProdutosController(CursoMvcContext context) { _context = context; }
public ItensCarrinhoRepository(CursoMvcContext context) : base(context) { }
public Repository(CursoMvcContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public UnitOfWork(CursoMvcContext context) { _context = context; _disposed = false; }
// protected CursoMvcContext Db { get => db; set => db = value; } public Repository() { Db = new CursoMvcContext(); DbSet = Db.Set <TEntity>(); }
public CategoriasController(CursoMvcContext context) { _context = context; }
public ClienteRepository(CursoMvcContext context) : base(context) { }