Example #1
0
 public PrescriptionRepository(PrimaryDataContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <Entity>();
 }
 public AppointmentRepository(PrimaryDataContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <Entity>();
 }
Example #3
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>();
 }