protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } if (_cancellationTokenSource != null) { _cancellationTokenSource.Dispose(); _cancellationTokenSource = null; } } }
public PhoneRepository(ZeMERPDbContext context) : base(context) { }
//Reference Data public UnitOfWork(ZeMERPDbContext context) { _context = context; }
public AddressRepository(ZeMERPDbContext context) : base(context) { }
public EmailRepository(ZeMERPDbContext context) : base(context) { }
public RepositoryBase(ZeMERPDbContext context) { _dbContext = context ?? throw new ArgumentException(nameof(context)); _dbSet = _dbContext.Set <T>(); }
public EmployeeRepository(ZeMERPDbContext context) : base(context) { }
public DepartmentRepository(ZeMERPDbContext context) : base(context) { }