Example #1
0
        //TODO imp Dispose(boolean)
        public void Dispose()
        {
            _configuredServices.Clear();
//   if (_context != null)
//  {
            _context.Dispose();
            _context = null;
            // }
            GC.SuppressFinalize(this);
        }
Example #2
0
 public ProdutoRepository(VendaContext context)
 {
     Db    = context;
     DbSet = Db.Set <Produto>();
 }
Example #3
0
 public VendaRepository(VendaContext context)
 {
     _context = context;
 }
Example #4
0
 public VendasController(VendaContext context)
 {
     _context = context;
 }
Example #5
0
 protected Repository(VendaContext db)
 {
     _ctxDB = db;
     DbSet  = db.Set <TEntity>();
 }
Example #6
0
 public VendaController(VendaContext cont, IMapper mvenda)
 {
     _vendaContext = cont;
     _mapVenda     = mvenda;
 }
Example #7
0
 public UnitOfWork(Resolver resolver)
 //public UnitOfWork()
 {
     _context  = new VendaContext();
     _resolver = resolver;
 }
Example #8
0
 public LojaRepositorio(VendaContext context)
 {
     _context = context;
 }
Example #9
0
 public ProdutoRepository(VendaContext context) : base(context)
 {
 }