public InvoiceTipRepository(InvoiceTipDbContext invoiceTipDbContext) { this.invoiceTipDbContext = new InvoiceTipDbContext(); if (this.dbSet == null) { this.dbSet = invoiceTipDbContext.Set <TEntity>(); } }
private void Dispose(bool disposing) { if (!disposing) { return; } if (invoiceTipDbContext == null) { return; } invoiceTipDbContext.Dispose(); invoiceTipDbContext = null; }