/// <summary>
 /// Allows class to be created using DBContext injected by application
 /// </summary>
 /// <param name="context"></param>
 public UnitOfWork(paymentsContext context)
 {
     _context = context;
 }
Exemple #2
0
 public OperatorRepositary(paymentsContext context) : base(context)
 {
 }
 public UnitOfWork(string connectionString)
 {
     _context = new paymentsContext(connectionString);
 }
 public Repository(paymentsContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }