Esempio n. 1
0
 public UnitOfWork()
 {
     _context = new PrimaryDataContext();
 }
Esempio n. 2
0
 public PrescriptionRepository(PrimaryDataContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <Entity>();
 }
Esempio n. 3
0
 public AppointmentRepository(PrimaryDataContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <Entity>();
 }
Esempio n. 4
0
 /// <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>();
 }