public UnitOfWork() { _context = new PrimaryDataContext(); }
public PrescriptionRepository(PrimaryDataContext context) { this.Context = context; this.DbSet = context.Set <Entity>(); }
public AppointmentRepository(PrimaryDataContext context) { this.Context = context; this.DbSet = context.Set <Entity>(); }
/// <summary> /// Initialize private variables. /// </summary> /// <param name="context">Data context in use.</param> public GenericRepository(PrimaryDataContext context) { this.Context = context; this.DbSet = context.Set <Entity>(); }