public void Dispose(bool disposing)
 {
     if (!disposing)
     {
         return;
     }
     if (_context == null)
     {
         return;
     }
     _context.Dispose();
     _context = null;
 }
Exemple #2
0
 public ApplicationEnvironmentRepository(ProcessInfoDbContext context) : base(context)
 {
 }
 public UserRepository(ProcessInfoDbContext context) : base(context)
 {
 }
Exemple #4
0
 public ApplicationTypeRepository(ProcessInfoDbContext context) : base(context)
 {
 }
 public UnitOfWork(ProcessInfoDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemple #6
0
 public GenericRepository(ProcessInfoDbContext context)
 {
     _context = context;
     DbSet    = _context.Set <T>();
 }