Example #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
 public AgenciaRepository(SystradeCadastroContext context)
     : base(context)
 {
     cn = _context.Database.Connection;
 }
Example #3
0
 public UnitOfWork(SystradeCadastroContext context)
 {
     _context = context;
 }
 public EnderecoRepository(SystradeCadastroContext context)
     : base(context)
 {
     cn = _context.Database.Connection;
 }
Example #5
0
 public Repository(SystradeCadastroContext contex)
 {
     _context = contex;
     DbSet    = _context.Set <TEntity>();
 }
 public RegistroUsuarioRepository(SystradeCadastroContext context)
     : base(context)
 {
     cn = _context.Database.Connection;
 }