Example #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
Example #2
0
 public RepositoryBase(DDDDemoContext context)
 {
     _context = context;
     _dbset   = context.Set <TEntity>();
 }
Example #3
0
 public CategoriaRepository(DDDDemoContext context)
     : base(context)
 {
 }
Example #4
0
 public ProdutoRepository(DDDDemoContext context)
     : base(context)
 {
 }
Example #5
0
 public UnitOfWork(DDDDemoContext context)
 {
     _context = context;
 }