Example #1
0
 public RepositoryHealthCare(HealthCareDbContext healthCareDbContext)
 {
     this.healthCareDbContext = new HealthCareDbContext();
     if (this.dbSet == null)
     {
         this.dbSet = healthCareDbContext.Set <TEntity>();
     }
 }
Example #2
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }
            if (healthCareDbContext == null)
            {
                return;
            }

            healthCareDbContext.Dispose();
            healthCareDbContext = null;
        }
Example #3
0
 public BaseRepository(HealthCareDbContext dbContext)
 {
     DbContext = dbContext;
     DbSet     = DbContext.Set <T>();
 }
Example #4
0
 public CompanyRepository(HealthCareDbContext dbContext) : base(dbContext)
 {
 }
Example #5
0
 public Repositories(HealthCareDbContext healthCareDbContextP)
 {
     this.healthCareDbContext = healthCareDbContextP;
 }